Function at 0x405410
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44af85
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x45f7e0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
mov eax, dword [0x45f7e0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov eax, ecx
mov dword [esp + 0x150], ebx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405480
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x98]
call fcn.00407180
lea ecx, [esp + 0x18]
call fcn.0040d9b0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xb0]
call fcn.0040dca0
push ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x154], 1
call fcn.00409600
push 1
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0xb8]
mov byte [esp + 0x15c], 2
call fcn.0040dd30
lea esi, [edi + 0x608]
call fcn.004076b0
push 0x463dc0
push 0x453158
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.0040a490
push 0x463dc0
lea ecx, [esp + 0x58]
mov byte [esp + 0x154], 3
call fcn.00409fe0
test al, al
je 0x40556b
lea ecx, [esp + 0x54]
call fcn.00408e20
push eax
lea ecx, [esp + 0x14]
call fcn.00407c50
mov ecx, dword [esp + 0x10]
push 5
push ebx
push ebx
push ecx
push str.OPEN
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40556b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040a680
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x28]
call fcn.0040a6e0
push eax
lea ecx, [esp + 0x3c]
call fcn.004090c0
test al, al
jne 0x405720
mov bl, 4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x3c]
call fcn.004090f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x150], bl
call fcn.00408e20
push eax
lea ecx, [esp + 0x14]
call fcn.00407c50
mov byte [esp + 0x150], 5
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
jge 0x4055da
or edi, 0xffffffff
jmp 0x4055f9
push str.download
push eax
call fcn.00432cb9
add esp, 8
test eax, eax
jne 0x4055f1
or edi, 0xffffffff
jmp 0x4055f9
sub eax, dword [esp + 0x10]
sar eax, 1
mov edi, eax
push 0x463dc0
lea ecx, [esp + 0x48]
call fcn.00408e20
push eax
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040a490
mov byte [esp + 0x150], 6
mov edx, dword [esp + 0x10]
cmp dword [edx - 0xc], 0
je 0x405697
cmp edi, 0xffffffff
je 0x405697
lea ecx, [esp + 0x64]
call fcn.00408e20
push eax
lea ecx, [esp + 0x18]
call fcn.00407c50
mov byte [esp + 0x150], 7
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
je 0x405673
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.004030d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00407700
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x150], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405697
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x150], 5
call fcn.00409c00
mov byte [esp + 0x150], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x150], 3
call fcn.00409c00
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x88]
call fcn.00409230
lea ecx, [esp + 0x38]
call fcn.004090a0
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x28]
call fcn.0040a6e0
push eax
lea ecx, [esp + 0x3c]
call fcn.004090c0
test al, al
je 0x40559b
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [edi + 0x610], ebx
jle 0x405744
mov eax, dword [edi + 0x20]
push ebx
push ebx
push 0x403
push eax
mov dword [edi + 0x64c], ebx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x405848
call fcn.0041374c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40575e
push 0x80004005
call fcn.00403660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0xdb
mov byte [esp + 0x154], 8
call fcn.0041b858
cmp eax, ebx
je 0x405793
push 0xdb
push eax
lea ecx, [esp + 0x1c]
call fcn.00402e30
mov esi, dword [esp + 0x14]
push 1
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov dword [esp + 0x18], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4057c9
cmp eax, dword [esi]
jne 0x4057c9
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x405805
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x4057e2
call fcn.00403590
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.004328ef
add esp, 0x10
mov edx, dword [esp + 0x18]
add edi, 0x10
mov dword [edx], edi
mov edi, dword [esp + 0x24]
push edi
mov ecx, ebx
call fcn.00406710
push 1
lea ecx, [edi + 0x6a4]
call fcn.00419a3f
mov byte [esp + 0x150], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405848
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x150], 2
call fcn.00409c00
lea ecx, [esp + 0x24]
mov byte [esp + 0x150], 1
call fcn.00409c00
lea ecx, [esp + 0xac]
push ecx
mov byte [esp + 0x154], 0
call fcn.004058d0
mov dword [esp + 0x150], 0xffffffff
cmp dword [esp + 0xa8], 0x10
jb 0x4058a4
mov edx, dword [esp + 0x94]
push edx
call fcn.00412406
add esp, 4
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.004325e3
mov esp, ebp
pop ebp
ret