Function at 0x4183ae
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2274
call fcn.00471ea0
mov eax, dword [0x4c6644]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x226c], ecx
and word [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2018]
push eax
mov ecx, dword [ebp - 0x226c]
call fcn.0041796a
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4183fb
mov eax, dword [ebp - 0x10]
jmp 0x418812
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2018]
push eax
call fcn.00418820
pop ecx
pop ecx
test eax, eax
jne 0x418426
push 0x20f
mov ecx, dword [ebp - 0x226c]
call fcn.00417be4
jmp 0x418812
mov ecx, dword [ebp - 0x226c]
call fcn.00418dfa
lea eax, [ebp - 0x2018]
push eax
mov ecx, dword [ebp - 0x226c]
call fcn.0041796a
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x418454
mov eax, dword [ebp - 0x10]
jmp 0x418812
movzx eax, word [ebp - 0xc]
mov dword [ebp - 0x2270], eax
cmp dword [ebp - 0x2270], 8
je 0x418492
cmp dword [ebp - 0x2270], 0x11
je 0x418680
cmp dword [ebp - 0x2270], 0x13
je 0x418616
cmp dword [ebp - 0x2270], 0x4008
je 0x4184ae
jmp 0x4187dc
push 1
lea eax, [ebp - 0x2018]
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00415a4b
mov dword [ebp - 8], eax
jmp 0x4187dc
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
mov dword [ebp - 0x2124], eax
lea ecx, [ebp - 0x2120]
call fcn.004188cd
push dword [ebp - 0x2124]
lea ecx, [ebp - 0x2120]
call fcn.00418911
lea ecx, [ebp - 0x2120]
call fcn.00418a14
test eax, eax
je 0x4185ff
lea ecx, [ebp - 0x2120]
call fcn.00418a14
mov dword [ebp - 0x2128], eax
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x212c], eax
and dword [ebp - 0x2124], 0
mov eax, dword [ebp - 0x212c]
movzx eax, word [eax]
test eax, eax
je 0x4185c1
push dword [ebp - 0x212c]
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2130], eax
mov eax, dword [ebp - 0x212c]
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x418581
mov eax, dword [ebp - 0x2130]
movzx eax, word [eax]
cmp eax, 0x30
jne 0x418581
mov eax, dword [ebp - 0x2128]
and word [eax], 0
mov eax, dword [ebp - 0x2128]
inc eax
inc eax
mov dword [ebp - 0x2128], eax
push dword [ebp - 0x2130]
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x212c], eax
jmp 0x4185af
mov eax, dword [ebp - 0x2128]
mov ecx, dword [ebp - 0x212c]
mov cx, word [ecx]
mov word [eax], cx
mov eax, dword [ebp - 0x2128]
inc eax
inc eax
mov dword [ebp - 0x2128], eax
mov eax, dword [ebp - 0x212c]
inc eax
inc eax
mov dword [ebp - 0x212c], eax
mov eax, dword [ebp - 0x2124]
inc eax
mov dword [ebp - 0x2124], eax
jmp 0x418516
mov eax, dword [ebp - 0x2128]
and word [eax], 0
mov eax, dword [ebp - 0x2128]
inc eax
inc eax
mov dword [ebp - 0x2128], eax
mov eax, dword [ebp - 0x2128]
and word [eax], 0
lea ecx, [ebp - 0x2120]
call fcn.00418a14
push eax
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00418992
mov dword [ebp - 8], eax
jmp 0x418606
mov dword [ebp - 8], 0xe
lea ecx, [ebp - 0x2120]
call fcn.004188df
jmp 0x4187dc
call fcn.00404af6
mov dword [ebp - 0x2140], eax
lea ecx, [ebp - 0x2148]
call fcn.004168cf
push 0x400
lea eax, [ebp - 0x2018]
push eax
call fcn.00416964
pop ecx
pop ecx
mov dword [ebp - 0x213c], eax
lea eax, [ebp - 0x214c]
push eax
push 0
push 0
push dword [ebp - 0x213c]
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x214c]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00418a22
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x2148]
call fcn.004168e1
jmp 0x4187dc
lea eax, [ebp - 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2154], eax
mov eax, dword [ebp - 0x2154]
and eax, 1
je 0x4186a8
mov eax, 0x80004005
jmp 0x418812
mov eax, dword [ebp - 0x2154]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2150], eax
lea ecx, [ebp - 0x2260]
call fcn.00418a4d
push dword [ebp - 0x2150]
lea ecx, [ebp - 0x2260]
call fcn.00418a91
lea ecx, [ebp - 0x2260]
call fcn.00418b62
test eax, eax
jne 0x418704
mov dword [ebp - 0x2268], 0x80004005
lea ecx, [ebp - 0x2260]
call fcn.00418a5f
mov eax, dword [ebp - 0x2268]
jmp 0x418812
push dword [ebp - 0x2150]
push 0
lea ecx, [ebp - 0x2260]
call fcn.00418b62
push eax
call fcn.00467660
add esp, 0xc
and dword [ebp - 0x2264], 0
jmp 0x418736
mov eax, dword [ebp - 0x2264]
inc eax
mov dword [ebp - 0x2264], eax
mov eax, dword [ebp - 0x2264]
cmp eax, dword [ebp - 0x2154]
jge 0x4187a6
lea ecx, [ebp - 0x2260]
call fcn.00418b62
mov ecx, eax
mov eax, dword [ebp - 0x2264]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [ebp - 0x2274], ecx
mov eax, dword [ebp - 0x2264]
mov ax, word [ebp + eax*2 - 0x2018]
push eax
call fcn.00418b12
pop ecx
movzx eax, al
mov ecx, dword [ebp - 0x2264]
and ecx, 1
xor edx, edx
inc edx
sub edx, ecx
shl edx, 2
mov ecx, edx
shl eax, cl
mov ecx, dword [ebp - 0x2274]
movzx ecx, byte [ecx]
or ecx, eax
mov eax, dword [ebp - 0x2274]
mov byte [eax], cl
jmp 0x418729
push dword [ebp - 0x2150]
lea ecx, [ebp - 0x2260]
call fcn.00418b62
push eax
push 3
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00418d87
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x2260]
call fcn.00418a5f
cmp dword [ebp - 8], 0
je 0x4187f4
mov dword [ebp - 4], 0x204
push dword [ebp - 8]
call fcn.00418dec
pop ecx
jmp 0x418812
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x226c]
call fcn.0041796a
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x418810
mov eax, dword [ebp - 0x10]
jmp 0x418812
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467392
leave
ret 0xc