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

Disassembly:
mov eax, 0x67a7c0
call fcn.006313fc
sub esp, 0x84
push esi
mov esi, dword [esp + 0x9c]
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x587db3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x15c]
test al, 2
jne 0x587db3
mov ecx, dword [esi + 0xcc]
push ebx
push edi
mov edi, dword [esp + 0xa8]
mov eax, dword [ecx]
push edi
call dword [eax + 0x74]
test eax, eax
jne 0x587b55
mov ecx, dword [esi + 0xcc]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [esi + 0xd8]
xor ebx, ebx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
imul eax, edi, 0x9c
mov dword [esp + 0x98], ebx
add eax, dword [ecx + 4]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push eax
call fcn.00585dc7
test al, al
je 0x587da5
xor eax, eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], ax
cmp dword [esp + 0x3c], 0x10
mov eax, dword [esp + 0x28]
mov byte [esp + 0x98], 1
jae 0x587bbf
lea eax, [esp + 0x28]
push ebp
push str.btapp:
push eax
call fcn.00479db3
mov bl, al
call fcn.00488bd1
push 0
push 0
movzx ebp, word [eax + 4]
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x1c]
push ebp
push edi
push esi
call fcn.0058716f
push 0x31
pop eax
push 8
pop esi
mov word [esp + 0x5c], ax
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x587c04
lea eax, [esp + 0x64]
mov dword [esp + 0x60], eax
test bl, bl
jne 0x587d94
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0043d0d2
mov byte [esp + 0x9c], 2
cmp dword [eax + 0x14], esi
jb 0x587c31
mov eax, dword [eax]
xor edi, edi
lea ecx, [esp + 0x5c]
inc edi
push edi
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0047f951
xor ebx, ebx
mov byte [esp + 0x9c], 4
push ebx
push edi
lea ecx, [esp + 0x84]
call fcn.0042341c
cmp byte [esp + 0x10], bl
je 0x587ce7
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0043d091
cmp dword [eax + 0x14], 0x10
jb 0x587c7e
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push ebx
push edi
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.0040a0e9
cmp esi, 0x20
jg 0x587d87
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x587cab
lea eax, [esp + 0x14]
push eax
push 0x36f
call fcn.00582370
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0047224d
add esp, 0xc
push eax
push 0x132
mov byte [esp + 0xa4], 5
call fcn.004895df
push ebx
push edi
lea ecx, [esp + 0x4c]
call fcn.0042341c
jmp 0x587d87
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x587cf5
lea eax, [esp + 0x14]
push ebp
push eax
lea eax, [esp + 0x4c]
push str._Shttp:__localhost:_d
push eax
call fcn.00472228
add esp, 0x10
mov eax, dword [esp + 0x14]
mov byte [esp + 0x9c], 6
cmp dword [esp + 0x28], esi
jae 0x587d1f
lea eax, [esp + 0x14]
push edi
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x587d7c
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x587d3f
lea eax, [esp + 0x44]
push eax
push 0x370
call fcn.00582370
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0047224d
add esp, 0xc
push eax
push 0x132
mov byte [esp + 0xa4], 7
call fcn.004895df
push ebx
push edi
lea ecx, [esp + 0x84]
call fcn.0042341c
push ebx
push edi
lea ecx, [esp + 0x4c]
call fcn.0040a0e9
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.0042341c
jmp 0x587d99
xor edi, edi
xor ebx, ebx
inc edi
push ebx
push edi
lea ecx, [esp + 0x6c]
call fcn.0042341c
pop ebp
push ebx
push 1
lea ecx, [esp + 0x30]
call fcn.0040a0e9
pop edi
pop ebx
mov ecx, dword [esp + 0x88]
pop esi
mov dword fs:[0], ecx
leave
ret 8