Function at 0x405e50
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 0x433d68
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x442d14]
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 0x439ca4
mov ecx, edi
call fcn.004024b0
push str.C:Program_FilesInternet_Exploreriexplore.exe
lea ecx, [esp + 0x1c]
call fcn.00402150
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.0041fef0
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 0x4061c8
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.0040c05e
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call fcn.0041fef0
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.00402150
push esi
mov byte [esp + 0x94], bl
call fcn.0040c063
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.00403ca0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 2
call fcn.00402680
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 0x405fbf
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 0x405fce
or eax, 0xffffffff
jmp 0x405fe9
push 0x43a040
push eax
call fcn.0041e233
add esp, 8
test eax, eax
jne 0x405fe5
or eax, 0xffffffff
jmp 0x405fe9
sub eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401cb0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 3
call fcn.00402680
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 0x406031
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 0x406121
push eax
call esi
cmp eax, 0xffffffff
je 0x406121
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0041ea80
add esp, 8
test eax, eax
je 0x406121
mov eax, dword [esp + 0x14]
mov esi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0041eb53
add esp, 8
test eax, eax
jne 0x406086
or eax, 0xffffffff
jmp 0x40608a
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.00403ca0
push 0x43a044
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 4
call fcn.00403bb0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00403bb0
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 0x4060f4
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x28]
push edx
call fcn.00402680
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 0x40619a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40619a
mov ecx, dword [esp + 0x18]
push ecx
call esi
cmp eax, 0xffffffff
je 0x40619a
push 2
push 0x43a044
lea ecx, [esp + 0x20]
call fcn.00403f60
mov esi, dword [ebp + 8]
test esi, esi
jne 0x406148
xor eax, eax
jmp 0x40615b
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406150
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403f60
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 0x40619a
mov ecx, dword [ebp + 0x10]
push str.iexplore.exe
call fcn.00402430
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 0x406241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406241
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406241
push 2
push 0x43a044
lea ecx, [esp + 0x20]
call fcn.00403f60
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4061f3
xor eax, eax
jmp 0x406203
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4061f8
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.00403f60
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 0x406241
push str.iexplore.exe
mov ecx, edi
call fcn.00402430
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x406252
push eax
call esi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406266
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 0x406291
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