Function at 0x4042e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a5fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1110
call fcn.00425b50
push ebx
push esi
push edi
lea eax, [ebp - 0x1120]
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040e2b0
test eax, eax
js 0x404679
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1120]
push eax
call fcn.0041ad00
add esp, 8
test eax, eax
jne 0x40434a
mov eax, 0x80020009
jmp 0x404679
mov ecx, ebx
call fcn.004196d0
lea eax, [ebp - 0x1120]
mov ecx, ebx
push eax
call fcn.0040e2b0
test eax, eax
js 0x404679
movzx eax, word [ebp - 0x18]
cmp eax, 0x13
jg 0x40457b
je 0x4044ae
cmp eax, 8
je 0x404493
cmp eax, 0x11
jne 0x404666
lea eax, [ebp - 0x1120]
push eax
call fcn.00425000
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test bl, 1
jne 0x4043fd
cdq
sub eax, edx
mov dword [ebp - 0x120], 0
mov esi, eax
sar esi, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x120]
push esi
mov byte [ebp - 4], 5
call fcn.00404810
jmp 0x4043de
mov eax, dword [ebp - 0x120]
test eax, eax
jne 0x404407
lea eax, [ebp - 0x11c]
test eax, eax
je 0x4043fd
lea ecx, [ebp - 0x120]
call fcn.0040b540
mov eax, 0x80004005
jmp 0x404679
push esi
push 0
push eax
call fcn.00423310
add esp, 0xc
xor edi, edi
test ebx, ebx
jle 0x404456
lea esp, [esp]
movzx eax, byte [ebp + edi - 0x1120]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x120]
push eax
call fcn.004064c0
mov edx, edi
mov ecx, 4
and edx, 1
inc edi
shl edx, 2
add esp, 4
sub ecx, edx
shl al, cl
or byte [esi], al
cmp edi, ebx
jl 0x404420
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push esi
push dword [ebp - 0x120]
push 3
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x404654
lea ecx, [ebp - 0x120]
call fcn.0040b540
jmp 0x404654
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1120]
push 1
push eax
push dword [ebp + 0xc]
call fcn.004191e0
mov edi, eax
jmp 0x404657
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1120]
mov dword [ebp - 4], 3
push eax
call fcn.00425000
inc eax
push 2
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401640
add esp, 0x10
test eax, eax
js 0x404569
mov esi, dword [ebp - 0x18]
cmp esi, 0x400
jg 0x404509
push esi
call fcn.0041b2c0
add esp, 4
test al, al
je 0x404509
mov eax, esi
call fcn.00425b20
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x404512
push esi
lea ecx, [ebp - 0x14]
call fcn.00404750
push 3
shr esi, 1
lea ecx, [ebp - 0x1120]
push esi
push ecx
push eax
call fcn.00404a00
test eax, eax
je 0x404569
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x40454c
lea ecx, [ebp - 0x14]
call fcn.00402260
mov eax, esi
jmp 0x404679
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00418cd0
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.00402260
jmp 0x404657
lea ecx, [ebp - 0x14]
call fcn.00402260
mov eax, 0x8007000e
jmp 0x404679
cmp eax, 0x4008
jne 0x404666
lea eax, [ebp - 0x1120]
push eax
call fcn.00425000
add esp, 4
mov dword [ebp - 0x120], 0
add eax, 2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x120]
push eax
mov byte [ebp - 4], 1
call fcn.00404810
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x40463a
cmp byte [ebp - 0x1120], 0
lea edi, [ebp - 0x1120]
je 0x40461a
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x4045f8
cmp byte [eax], 0x30
jne 0x4045f8
mov byte [esi], 0
inc esi
push eax
call ebx
mov edi, eax
jmp 0x404615
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_IsDBCSLeadByte]
test eax, eax
je 0x404613
mov al, byte [edi + 1]
inc edi
inc esi
test al, al
je 0x40461a
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x4045d8
mov ecx, dword [ebp + 8]
mov word [esi], 0
push dword [ebp - 0x120]
push dword [ebp + 0xc]
call fcn.00418f60
mov esi, dword [ebp - 0x120]
mov edi, eax
jmp 0x40463f
mov edi, 0xe
lea eax, [ebp - 0x11c]
cmp esi, eax
je 0x404654
lea ecx, [ebp - 0x120]
call fcn.0040b540
mov ebx, dword [ebp - 0x14]
test edi, edi
je 0x404666
push edi
call fcn.00405330
add esp, 4
jmp 0x404679
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0040e2b0
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x112c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc