Function at 0x402ca0
Capabilities:
Create process on windows
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e33b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x43b050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
push 0x44
push esi
push 0x43e5f0
mov edi, ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], esi
call fcn.0041d2e0
mov edx, dword [section..data]
xor eax, eax
mov ecx, 5
mov dword [0x43e5dc], eax
mov dword [0x43e5e0], eax
mov dword [0x43e5e4], eax
mov dword [0x43e5e8], eax
mov eax, dword [edx + 0xc]
mov word [0x43e620], cx
add esp, 0xc
mov ecx, section..data
mov dword [0x43e5f0], 0x44
mov dword [0x43e61c], 1
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x402d57
push 0x80070057
call fcn.00401540
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x402d7b
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.00403e20
mov eax, dword [ebp - 0x21c]
mov ecx, 0x22
mov word [eax + ebx*2], cx
cmp esi, dword [eax - 8]
jg 0x402d4d
xor edx, edx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], dx
test edi, edi
jne 0x402d9a
xor eax, eax
jmp 0x402daf
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402da0
sub eax, edx
sar eax, 1
push eax
push edi
lea ebx, [ebp - 0x21c]
call fcn.00403d60
mov eax, dword [ebp - 0x21c]
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x402dd6
push 0x80070057
call fcn.00401540
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x402dfa
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.00403e20
mov eax, dword [ebp - 0x21c]
mov ecx, 0x22
mov word [eax + ebx*2], cx
cmp esi, dword [eax - 8]
jg 0x402d4d
mov dword [eax - 0xc], esi
xor edx, edx
mov word [eax + esi*2], dx
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
jns 0x402e29
push 0x80070057
call fcn.00401540
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x402e4d
mov eax, esi
lea ecx, [ebp - 0x21c]
call fcn.00403e20
mov eax, dword [ebp - 0x21c]
mov ecx, 0x20
mov word [eax + ebx*2], cx
cmp esi, dword [eax - 8]
jg 0x402d4d
xor edx, edx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], dx
mov esi, dword [ebp - 0x220]
test esi, esi
jne 0x402e76
xor eax, eax
jmp 0x402e8f
mov eax, esi
lea edx, [eax + 2]
jmp 0x402e80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402e80
sub eax, edx
sar eax, 1
push eax
push esi
lea ebx, [ebp - 0x21c]
call fcn.00403d60
mov ebx, dword [ebp - 0x21c]
cmp dword [ebx - 4], 1
jle 0x402ebe
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00403a50
mov ebx, dword [ebp - 0x21c]
push 0x43e5dc
push 0x43e5f0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402faa
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0041d2e0
mov edx, dword [0x43e5dc]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edx
xor edi, edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jle 0x402f8c
lea esi, [ebp + eax*2 - 0x21a]
lea eax, [ebp - 0x218]
cmp esi, eax
jb 0x402f8c
movzx eax, word [esi]
cmp eax, 0x5c
je 0x402f55
cmp eax, 0x2f
je 0x402f55
lea ecx, [ebp - 0x218]
inc edi
cmp esi, ecx
jbe 0x402f58
sub esi, 2
mov edx, ecx
cmp esi, edx
jae 0x402f32
jmp 0x402f58
add esi, 2
test edi, edi
jle 0x402f8c
push esi
call fcn.0041b7b7
add esp, 4
call fcn.00417340
cmp eax, 0x53da980c
je 0x402f7f
cmp eax, 0x7c44b63d
je 0x402f7f
push 0xbbd
jmp 0x402f84
push 0xbc7
call fcn.00407610
add esp, 4
mov eax, dword [0x43e5dc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x43e5e0]
push ecx
call esi
mov esi, 1
jmp 0x402fb0
mov esi, dword [ebp - 0x224]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.0041b8e7
add esp, 8
test eax, eax
js 0x402d4d
cmp eax, dword [ebx - 8]
jg 0x402d4d
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402ffa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b25d
mov esp, ebp
pop ebp
ret 4