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

Disassembly:
push 0xffffffffffffffff
push 0x44c949
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d3c]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
xor ebx, ebx
push str.EXPLORER.EXE
mov dword [esp + 0x30], ebx
call fcn.0040bb80
add esp, 4
cmp eax, ebx
jne 0x40bcdc
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x452904
call fcn.00402a70
call fcn.0040b7c0
add esp, 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40c477
lea ecx, [esp + 0x2c]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [esp + 0x2c], ebx
jne 0x40bd14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4528e4
call fcn.0040b960
add esp, 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40c477
push 0x44
lea edx, [esp + 0x70]
push ebx
push edx
call fcn.00431220
mov eax, 5
add esp, 0xc
mov dword [esp + 0x6c], 0x44
mov word [esp + 0x9c], ax
mov dword [esp + 0x98], 1
call fcn.0040d0de
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bd5e
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 + 0x20], edi
mov dword [esp + 0xb8], ebx
call fcn.0040d0de
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40bd8f
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 + 0x1c], ebp
mov esi, dword [esp + 0xc0]
cmp esi, ebx
mov byte [esp + 0xb8], 1
jle 0x40be03
mov ecx, dword [esp + 0xc4]
mov edx, dword [ecx]
push edx
lea ecx, [esp + 0x1c]
call fcn.00402a70
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xbc], 2
call fcn.00402100
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
cmp esi, 1
mov dword [esp + 0x18], 1
jle 0x40c29a
mov bl, 6
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x18]
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 + 0xb8], 3
jl 0x40c18b
push 0x44fa10
push ecx
call fcn.00431527
add esp, 8
test eax, eax
je 0x40bf48
mov ecx, dword [esp + 0x14]
sub eax, ecx
js 0x40bf4c
call fcn.0040d0de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40bd54
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0xb8], 4
xor esi, esi
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
test esi, esi
jl 0x40bebc
cmp esi, ecx
jg 0x40bebc
lea ecx, [esi + eax]
push 0x44fa10
push ecx
call fcn.00431527
add esp, 8
test eax, eax
jne 0x40c09e
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 + 0x2c]
mov byte [esp + 0xc0], 8
call fcn.00402000
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bf0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jge 0x40be94
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402100
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bf48
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 0x40c18b
push 0x44fa0c
push ecx
call fcn.00431527
add esp, 8
test eax, eax
je 0x40c18b
sub eax, dword [esp + 0x14]
js 0x40c18b
push 0x44fa08
lea ecx, [esp + 0x3c]
call fcn.00402a70
mov esi, eax
push 0x44fa10
lea ecx, [esp + 0x50]
mov byte [esp + 0xbc], 9
call fcn.00402a70
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xc4], 0xa
call fcn.00402610
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0xd0], 0xb
call fcn.00402610
push esi
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0xdc], 0xc
call fcn.00402610
add esp, 0x24
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 0xd
call fcn.00402100
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c01d
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 + 0xb8], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c045
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
mov byte [esp + 0xb8], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c06d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c095
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
jmp 0x40c234
sub eax, dword [esp + 0x14]
mov ebp, eax
test ebp, ebp
jl 0x40bebf
push 0x44fa04
lea ecx, [esp + 0x54]
call fcn.00402a70
mov edi, eax
mov edx, ebp
sub edx, esi
push edx
push esi
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xc4], 5
call fcn.00401b50
push edi
push eax
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0xc4], bl
call fcn.00402610
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc0], 7
call fcn.00402000
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0xb8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c12d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c155
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 + 0xb8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c17d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
lea esi, [ebp + 1]
mov ebp, esi
jmp 0x40bf0e
push 0x44fa0c
lea ecx, [esp + 0x2c]
call fcn.00402a70
mov esi, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0xc4], 0xe
call fcn.00402610
push esi
push eax
lea ecx, [esp + 0x54]
push ecx
mov byte [esp + 0xd0], 0xf
call fcn.00402610
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xbc], 0x10
call fcn.00402100
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 0xf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c208
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 + 0xb8], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c230
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xb8], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c258
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 + 0xb8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0xc0]
mov dword [esp + 0x18], eax
jl 0x40be16
mov ebp, dword [esp + 0x1c]
cmp dword [edi - 0xc], 0
je 0x40c42c
push 0x5c
push edi
call fcn.004315fa
add esp, 8
test eax, eax
je 0x40c2bb
sub eax, edi
mov esi, eax
test esi, esi
jg 0x40c2da
push 0x2f
push edi
call fcn.004315fa
add esp, 8
test eax, eax
je 0x40c38c
sub eax, edi
mov esi, eax
test esi, esi
jle 0x40c38c
call fcn.0040d0de
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c2f4
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 + 0x18], eax
push esi
push 0
lea ecx, [esp + 0x30]
push ecx
mov bl, 0x11
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc4], bl
call fcn.00401b50
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 0x12
call fcn.00402100
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c357
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x40c368
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esi - 0x10]
mov byte [esp + 0xb8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c38c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, edx
or eax, ecx
jge 0x40c3ae
push edx
lea ecx, [esp + 0x20]
call fcn.004017b0
mov ebp, dword [esp + 0x1c]
mov edx, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x40c3d0
push edx
lea ecx, [esp + 0x24]
call fcn.004017b0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x70]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push ebp
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x40c410
mov ecx, dword [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x60]
push edx
call esi
jmp 0x40c42c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser:_d
call fcn.0040b960
add esp, 8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
mov byte [esp + 0xb8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0xb8], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret