Function at 0x59bdf9
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x6beb78
call fcn.00651da4
sub esp, 0x80
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x59c065
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x15c]
test al, 2
jne 0x59c065
mov ecx, dword [esi + 0xcc]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax + 0x74]
test eax, eax
jne 0x59be54
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 [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
imul eax, edi, 0x9c
mov dword [ebp - 4], ebx
add eax, dword [ecx + 4]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.0059a2b7
test al, al
je 0x59c058
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x59beab
lea eax, [ebp - 0x44]
push str.btapp:
push eax
call fcn.0047a878
mov bl, al
call fcn.00489aa6
push 0
push 0
lea ecx, [ebp - 0x5c]
movzx eax, word [eax + 4]
push ecx
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push eax
push edi
push esi
call fcn.0059b563
push 0x31
pop eax
push 8
pop esi
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], esi
jae 0x59beec
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x59c049
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0043b86a
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x59bf12
mov eax, dword [eax]
xor edi, edi
lea ecx, [ebp - 0x14]
inc edi
push edi
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004801c2
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.004284eb
cmp byte [ebp + 8], bl
je 0x59bfb0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0043b829
cmp dword [eax + 0x14], 0x10
jb 0x59bf51
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push ebx
push edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040facf
cmp esi, 0x20
jg 0x59c03d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x59bf7a
lea eax, [ebp - 0x2c]
push eax
push 0x39c
call fcn.00595698
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00462014
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 5
call fcn.0048a0b1
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.004284eb
jmp 0x59c03d
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x59bfbb
lea eax, [ebp - 0x2c]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x74]
push str._Shttp:__localhost:_d
push eax
call fcn.00461fef
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], esi
jae 0x59bfdf
lea eax, [ebp - 0x2c]
push edi
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x59c033
cmp dword [ebp - 0x60], 0x10
mov eax, dword [ebp - 0x74]
jae 0x59bffc
lea eax, [ebp - 0x74]
push eax
push 0x39d
call fcn.00595698
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00462014
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 7
call fcn.0048a0b1
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.004284eb
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.0040facf
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.004284eb
jmp 0x59c04e
xor edi, edi
xor ebx, ebx
inc edi
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.004284eb
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040facf
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8