Function at 0x4058b0
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432548
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x43fd14]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push 0x437cb4
mov ecx, edi
call fcn.00402300
push str.C:Program_FilesInternet_Exploreriexplore.exe
lea ecx, [esp + 0x1c]
call fcn.00401ec0
xor eax, eax
mov dword [esp + 0x90], esi
push 0x44
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push esi
push eax
mov dword [esp + 0x38], esi
call fcn.0041e8e0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push esi
push str.http_shellopencommand
mov ebx, 1
push SysReAllocString
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x405c28
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
push esi
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push ecx
call edi
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040aa4e
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call fcn.0041e8e0
mov eax, dword [esp + 0x30]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push eax
call edi
push esi
lea ecx, [esp + 0x18]
call fcn.00401ec0
push esi
mov byte [esp + 0x94], bl
call fcn.0040aa53
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
add eax, 0xffffffff
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403a20
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.00402280
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jge 0x405a2e
or eax, 0xffffffff
jmp 0x405a49
push 0x438014
push eax
call fcn.0041cacc
add esp, 8
test eax, eax
jne 0x405a45
or eax, 0xffffffff
jmp 0x405a49
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401a40
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.00402280
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jle 0x405b81
push eax
call esi
cmp eax, 0xffffffff
je 0x405b81
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0041d320
add esp, 8
test eax, eax
je 0x405b81
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0041d3f3
add esp, 8
test eax, eax
jne 0x405ae6
or eax, 0xffffffff
jmp 0x405aea
sub eax, dword [esp + 0x14]
sub esi, eax
sub esi, ebx
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403a20
push 0x438018
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 4
call fcn.00403930
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403930
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405b54
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x28]
push edx
call fcn.00402280
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405bfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405bfa
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp eax, 0xffffffff
je 0x405bfa
push 2
push 0x438018
lea ecx, [esp + 0x20]
call fcn.00403ce0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x405ba8
xor eax, eax
jmp 0x405bbb
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405bb0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403ce0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405bfa
mov ecx, dword [ebp + 0x10]
push str.iexplore.exe
call fcn.00402490
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405ca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x405ca1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405ca1
push 2
push 0x438018
lea ecx, [esp + 0x20]
call fcn.00403ce0
mov esi, dword [ebp + 8]
test esi, esi
jne 0x405c53
xor eax, eax
jmp 0x405c63
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405c58
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403ce0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405ca1
push str.iexplore.exe
mov ecx, edi
call fcn.00402490
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x405cb2
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x405cc6
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ecx], edx
call esi
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc