Function at 0x4057d0
Capabilities:
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x428ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x435c14]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x40], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x54]
xor edi, edi
cmp eax, ebp
mov byte [esp + 0x40], 3
jne 0x405878
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edx
push 0x80000001
mov dword [esp + 0x78], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x405847
mov ebx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x50]
mov edi, eax
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
jne 0x405862
push 0x80004005
call fcn.00401ab0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov eax, dword [esp + 0x50]
push esi
push 1
push ebp
push eax
jmp 0x4058e1
cmp eax, 1
jne 0x4058f7
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
push edx
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push eax
push 0x80000002
mov dword [esp + 0x78], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x4058b2
mov ebx, dword [esp + 0x54]
xor eax, eax
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x50]
mov edi, eax
xor eax, eax
cmp esi, ebp
setne al
cmp eax, ebp
jne 0x4058cd
push 0x80004005
call fcn.00401ab0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x4c]
add eax, 1
push eax
push esi
push 1
push ebp
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebp
je 0x405a34
mov edi, eax
jmp 0x405a34
cmp eax, 2
jne 0x405a43
lea ecx, [esp + 0x24]
call fcn.00410525
push 0x42b7b3
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 4
call fcn.00402230
mov esi, dword [esp + 0x50]
mov ebp, dword [esi - 0xc]
xor edi, edi
cmp dword [esi - 4], 1
mov byte [esp + 0x40], 5
mov dword [esp + 0x54], edi
jle 0x405944
mov edx, ebp
push edx
lea ecx, [esp + 0x54]
call fcn.00401c40
mov esi, dword [esp + 0x50]
add ebp, 0xffffffff
test ebp, ebp
jle 0x4059a9
jmp 0x405950
lea eax, [esp + 0x54]
push eax
push 0x42c010
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x5c]
call fcn.004056a0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 6
call fcn.00403d60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x40], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40599c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x54]
cmp edi, ebp
mov byte [esi + edi - 1], 0
jl 0x405950
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push 0x80000002
mov byte [edi + esi], 0
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4059e8
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x4c]
push esi
push ecx
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00403370
test eax, eax
je 0x4059ff
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 3
call fcn.004105c3
xor ebp, ebp
cmp ebx, ebp
je 0x405a47
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x405a47
mov esi, dword [esp + 0x50]
cmp edi, ebp
sete byte [esp + 0x54]
cmp ebx, ebp
je 0x405a59
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x40], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405aa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ac7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x10