Function at 0x4052cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x1114
lea ebp, [esp - 0x68]
call fcn.00407740
mov eax, dword [0x410040]
push ebx
push esi
mov esi, dword [ebp + 0x70]
push edi
mov dword [ebp + 0x64], eax
xor edi, edi
lea eax, [ebp - 0x10a0]
mov ecx, esi
mov dword [ebp - 0x10a4], edi
call fcn.00404c89
cmp eax, edi
jl 0x405602
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x10a0]
push eax
call fcn.0040561a
test eax, eax
pop ecx
pop ecx
jne 0x405329
mov eax, 0x80020009
jmp 0x405602
call fcn.00405999
lea eax, [ebp - 0x10a0]
mov ecx, esi
call fcn.00404c89
cmp eax, edi
jl 0x405602
movzx eax, word [ebp - 0x10a4]
sub eax, 8
je 0x4055cc
sub eax, 9
je 0x4054ec
dec eax
dec eax
je 0x405423
sub eax, 0x3ff5
jne 0x4055f1
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.004056dd
mov edi, dword [ebp - 0xa0]
test edi, edi
je 0x4053fe
cmp byte [ebp - 0x10a0], 0
lea esi, [ebp - 0x10a0]
je 0x4053e6
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push esi
call ebx
mov cl, byte [esi]
cmp cl, 0x5c
jne 0x4053c8
cmp byte [eax], 0x30
jne 0x4053c8
mov byte [edi], 0
push eax
inc edi
call ebx
mov esi, eax
jmp 0x4053e1
xor eax, eax
mov byte [edi], cl
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4053df
inc edi
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
cmp byte [esi], 0
jne 0x4053ae
mov byte [edi], 0
push dword [ebp - 0xa0]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00405722
mov esi, eax
jmp 0x405401
push 0xe
pop esi
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x4055e2
lea eax, [ebp - 0xa0]
call fcn.004056d4
jmp 0x4055e2
call dword [0x410070]
mov dword [ebp - 0x10ac], eax
lea eax, [ebp - 0x10a0]
push eax
mov dword [ebp - 0x10a4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea esi, [ebx + ebx]
cmp esi, 0x400
ja 0x40546c
push esi
call fcn.004044c6
test al, al
pop ecx
je 0x40546c
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00407740
mov eax, esp
jmp 0x40547f
mov eax, esi
lea esi, [ebp - 0x10a4]
call fcn.0040451f
mov edi, dword [ebp - 0x10a4]
push dword [ebp - 0x10ac]
lea ecx, [ebp - 0x10a0]
push ebx
push ecx
mov esi, eax
call fcn.00404494
test eax, eax
je 0x4054ca
lea ecx, [ebp - 0x10a8]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp - 0x10a8]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.00405759
mov esi, eax
jmp 0x4054e3
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.004068a3
pop ecx
test edi, edi
jne 0x4054bf
mov eax, 0x8007000e
jmp 0x405602
mov eax, edi
mov edi, dword [edi]
push eax
call fcn.004068a3
pop ecx
test edi, edi
jne 0x4054d8
jmp 0x4055e2
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 0x10a4], eax
jne 0x405537
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
push ebx
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], edi
call fcn.004056dd
mov edi, dword [ebp - 0xa0]
test edi, edi
jne 0x405541
lea eax, [ebp - 0x9c]
test eax, eax
je 0x405537
mov eax, esi
call fcn.004056d4
mov eax, 0x80004005
jmp 0x405602
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp - 0x10a4], edi
jle 0x405595
mov ecx, dword [ebp - 0xa0]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x10a0]
call fcn.00405777
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 0x10a4]
jl 0x40555d
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
push ebx
push dword [ebp - 0xa0]
push 3
push 0
push dword [ebp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0xa0], eax
je 0x4055e2
lea eax, [ebp - 0xa0]
call fcn.004056d4
jmp 0x4055e2
push 1
lea eax, [ebp - 0x10a0]
push eax
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.004056ac
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4055f1
mov eax, esi
call fcn.0040598a
jmp 0x405602
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x70]
call fcn.00404c89
cmp eax, edi
jl 0x405602
xor eax, eax
lea esp, [ebp - 0x10b8]
mov ecx, dword [ebp + 0x64]
call fcn.00406b52
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10