Function at 0x4018d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x111c
call fcn.00406890
mov eax, dword [0x416398]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x111c], eax
lea eax, [ebp - 0x1004]
mov esi, ecx
push eax
mov dword [ebp - 0x1114], esi
mov dword [ebp - 0x1110], ebx
mov dword [ebp - 0x1118], edi
mov dword [ebp - 0x110c], 0
call fcn.00402bd0
test eax, eax
js 0x401c6c
lea eax, [ebp - 0x110c]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004056b0
add esp, 8
test eax, eax
jne 0x40194f
mov eax, 0x80020009
jmp 0x401c6c
mov ecx, esi
call fcn.00404cd0
lea eax, [ebp - 0x1004]
push eax
mov ecx, esi
call fcn.00402bd0
test eax, eax
js 0x401c6c
movzx eax, word [ebp - 0x110c]
cmp eax, 0x13
jg 0x401b6e
je 0x401aa4
cmp eax, 8
je 0x401a8c
cmp eax, 0x11
jne 0x401c56
lea ebx, [ebp - 0x1004]
lea ecx, [ebx + 1]
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4019a0
sub ebx, ecx
test bl, 1
jne 0x4019f2
mov eax, ebx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
lea ecx, [ebp - 0x1108]
mov dword [ebp - 0x110c], esi
mov dword [ebp - 0x1108], 0
call fcn.00401d20
mov eax, dword [ebp - 0x1108]
test eax, eax
jne 0x4019fc
lea eax, [ebp - 0x1104]
test eax, eax
je 0x4019f2
lea ecx, [ebp - 0x1108]
call fcn.004026d0
mov eax, 0x80004005
jmp 0x401c6c
push esi
push 0
push eax
call fcn.004070b0
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x401a49
mov edi, edi
movzx eax, byte [ebp + edi - 0x1004]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1108]
push eax
call fcn.004020e0
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
inc edi
add esp, 4
or byte [esi], al
cmp edi, ebx
jl 0x401a10
mov esi, dword [ebp - 0x110c]
mov eax, dword [ebp - 0x1110]
push esi
push dword [ebp - 0x1108]
push 3
push 0
push dword [ebp - 0x1118]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x1104]
cmp dword [ebp - 0x1108], eax
je 0x401c41
lea ecx, [ebp - 0x1108]
call fcn.004026d0
jmp 0x401c41
push 1
lea eax, [ebp - 0x1004]
push eax
push edi
mov ecx, ebx
call fcn.00404c10
mov edi, eax
jmp 0x401c47
lea ecx, [ebp - 0x1004]
mov dword [ebp - 0x110c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ab7
sub ecx, edx
push 2
lea eax, [ecx + 1]
push eax
mov dword [ebp - 0x1110], eax
lea eax, [ebp - 0x1110]
push eax
call fcn.00401030
add esp, 0xc
test eax, eax
js 0x401b59
mov esi, dword [ebp - 0x1110]
cmp esi, 0x400
jg 0x401b05
push esi
call fcn.004057a0
add esp, 4
test al, al
je 0x401b05
mov eax, esi
call fcn.00406860
mov eax, esp
jmp 0x401b11
push esi
lea ecx, [ebp - 0x110c]
call fcn.00401c90
push 3
shr esi, 1
push esi
lea ecx, [ebp - 0x1004]
push ecx
push eax
call fcn.00401e30
test eax, eax
je 0x401b59
lea ecx, [ebp - 0x1118]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x1118]
mov ecx, ebx
push edi
call fcn.00404b90
lea ecx, [ebp - 0x110c]
mov edi, eax
call fcn.004011c0
jmp 0x401c41
lea ecx, [ebp - 0x110c]
call fcn.004011c0
mov eax, 0x8007000e
jmp 0x401c6c
cmp eax, 0x4008
jne 0x401c56
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b82
sub ecx, edx
mov dword [ebp - 0x1108], 0
lea eax, [ecx + 2]
push eax
lea ecx, [ebp - 0x1108]
call fcn.00401d20
mov esi, dword [ebp - 0x1108]
test esi, esi
je 0x401c27
cmp byte [ebp - 0x1004], 0
lea edi, [ebp - 0x1004]
je 0x401c05
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x401bdd
cmp byte [eax], 0x30
jne 0x401bdd
mov byte [esi], 0
push eax
inc esi
call ebx
mov edi, eax
jmp 0x401bfa
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x401bf8
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
je 0x401bff
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x401bc3
mov ebx, dword [ebp - 0x1110]
mov word [esi], 0
push dword [ebp - 0x1108]
mov ecx, ebx
push dword [ebp - 0x1118]
call fcn.00404bb0
mov esi, dword [ebp - 0x1108]
mov edi, eax
jmp 0x401c2c
mov edi, 0xe
lea eax, [ebp - 0x1104]
cmp esi, eax
je 0x401c41
lea ecx, [ebp - 0x1108]
call fcn.004026d0
mov esi, dword [ebp - 0x1114]
test edi, edi
je 0x401c56
push edi
call fcn.00401f80
add esp, 4
jmp 0x401c6c
push dword [ebp - 0x111c]
mov ecx, esi
call fcn.00402bd0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1128]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040684f
mov esp, ebp
pop ebp
ret 0xc