Function at 0x403600
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44bbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d3c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
call fcn.0040d0de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403641
push 0x80004005
call fcn.00401060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x60], 0
call fcn.0040d0de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403673
push 0x80004005
call fcn.00401060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x68]
mov byte [esp + 0x60], 1
test esi, esi
jle 0x4036d8
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
push edx
lea ecx, [esp + 0x28]
call fcn.00402a70
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 2
call fcn.00402100
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
cmp esi, 1
mov dword [esp + 0x24], 1
jle 0x403b1b
mov bl, 6
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00402a70
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
mov byte [esp + 0x60], 3
jl 0x403a24
push 0x44fa10
push ecx
call fcn.00431527
add esp, 8
test eax, eax
je 0x40380b
mov ecx, dword [esp + 0x14]
sub eax, ecx
js 0x40380f
call fcn.0040d0de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403637
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x60], 4
xor esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test esi, esi
jl 0x403788
cmp esi, ecx
jg 0x403788
lea ecx, [esi + eax]
push 0x44fa10
push ecx
call fcn.00431527
add esp, 8
test eax, eax
jne 0x403949
or ebp, 0xffffffff
push esi
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401ec0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 8
call fcn.00402000
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4037d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jge 0x403760
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402100
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x60], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40380b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
jl 0x403a24
push 0x44fa0c
push ecx
call fcn.00431527
add esp, 8
test eax, eax
je 0x403a24
sub eax, dword [esp + 0x14]
js 0x403a24
push 0x44fa08
lea ecx, [esp + 0x4c]
call fcn.00402a70
mov esi, eax
push 0x44fa10
lea ecx, [esp + 0x48]
mov byte [esp + 0x64], 9
call fcn.00402a70
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x6c], 0xa
call fcn.00402610
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x78], 0xb
call fcn.00402610
push esi
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x84], 0xc
call fcn.00402610
add esp, 0x24
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xd
call fcn.00402100
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4038f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40391b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x60], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403940
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
jmp 0x403abe
sub eax, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
jl 0x40378b
push 0x44fa04
lea ecx, [esp + 0x34]
call fcn.00402a70
mov edi, eax
mov edx, ebp
sub edx, esi
push edx
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 5
call fcn.00401b50
push edi
push eax
lea ecx, [esp + 0x30]
push ecx
mov byte [esp + 0x6c], bl
call fcn.00402610
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x68], 7
call fcn.00402000
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x60], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4039cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x60], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
lea esi, [ebp + 1]
mov ebp, esi
jmp 0x4037d4
push 0x44fa0c
lea ecx, [esp + 0x58]
call fcn.00402a70
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x6c], 0xe
call fcn.00402610
push esi
push eax
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x78], 0xf
call fcn.00402610
add esp, 0x18
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0x10
call fcn.00402100
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0xf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x60], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x60], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403adf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
jl 0x4036eb
mov ebp, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
je 0x403c22
push 0x5c
push edi
call fcn.004315fa
add esp, 8
test eax, eax
je 0x403b3c
sub eax, edi
mov esi, eax
test esi, esi
jg 0x403b5b
push 0x2f
push edi
call fcn.004315fa
add esp, 8
test eax, eax
je 0x403c01
sub eax, edi
mov esi, eax
test esi, esi
jle 0x403c01
call fcn.0040d0de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403b75
push 0x80004005
call fcn.00401060
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push esi
push 0
lea ecx, [esp + 0x5c]
push ecx
mov bl, 0x11
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], bl
call fcn.00401b50
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 0x12
call fcn.00402100
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x60], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
cmp dword [esi - 0xc], 0
je 0x403be0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0xc], 0
push 0
push 0
jne 0x403c1f
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
jmp 0x403c26
push ebp
jmp 0x403c0d
mov esi, dword [esp + 0x54]
cmp esi, 0x20
jg 0x403c3b
push esi
push ebp
push edi
push 0x44f9d4
call fcn.0040b960
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
mov byte [esp + 0x60], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret