Function at 0x40ce80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46c908
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x48b370]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push esi
push edi
mov eax, dword [0x48b370]
xor eax, esp
push eax
lea eax, [esp + 0x568]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x24], eax
mov ebx, edx
call fcn.00402ec2
lea edx, [esp + 0x6c]
push edx
mov ecx, edi
mov dword [esp + 0x574], 0
call fcn.0040632c
add esp, 4
push str.helper::createprocess_inherithandles_w
lea ecx, [esp + 0x10c]
call fcn.0040258f
push str.E:code_b5m_client_bang5taoB5TClientSourceB5TLibcommonhelper_inl.h
lea ecx, [esp + 0x128]
mov byte [esp + 0x574], 1
call fcn.0040258f
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x574], 2
call fcn.00402f86
push eax
lea ecx, [esp + 0x10c]
push ecx
push 0x17b
lea edx, [esp + 0x130]
push edx
push 1
push ecx
mov byte [esp + 0x588], 3
call fcn.00439dc3
add esp, 4
push eax
call fcn.0043a160
lea esi, [esp + 0x140]
mov byte [esp + 0x570], 2
call fcn.004026c0
lea ecx, [esp + 0x124]
mov byte [esp + 0x570], 1
call fcn.004025cc
lea ecx, [esp + 0x108]
mov byte [esp + 0x570], 0
call fcn.004025cc
or esi, 0xffffffff
lea ecx, [esp + 0xbc]
mov dword [esp + 0x570], esi
call fcn.00402f43
lea ecx, [esp + 0xbc]
call fcn.004029cc
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x166]
push ecx
mov word [esp + 0x168], ax
call fcn.004556a0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40cfe7
mov edi, dword [edi]
push edi
lea edx, [esp + 0x160]
push 0x200
push edx
call fcn.0044da11
add esp, 0xc
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004556a0
add esp, 0xc
cmp byte [ebp + 0xc], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
je 0x40d030
mov ecx, 5
mov word [esp + 0x54], cx
jmp 0x40d037
xor edx, edx
mov word [esp + 0x54], dx
mov edx, dword [ebp + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push 0
push 0x20
push edx
push 0
push 0
lea eax, [esp + 0x17c]
push eax
push 0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d16f
lea ecx, [esp + 0x6c]
push ecx
call fcn.00403575
mov dword [esp + 0x570], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x70]
push edx
call fcn.004027f8
push str.helper::createprocess_inherithandles_w
lea ecx, [esp + 0x128]
call fcn.0040258f
push str.E:code_b5m_client_bang5taoB5TClientSourceB5TLibcommonhelper_inl.h
lea ecx, [esp + 0x10c]
mov byte [esp + 0x574], 5
call fcn.0040258f
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x574], 6
call fcn.00403624
push eax
lea ecx, [esp + 0x128]
push ecx
push 0x192
push 2
mov byte [esp + 0x580], 7
call fcn.00439dc3
lea ecx, [esp + 0x118]
mov ebx, eax
call fcn.00439e02
lea ecx, [esp + 0x140]
mov byte [esp + 0x570], 6
call fcn.004025cc
lea ecx, [esp + 0x108]
mov byte [esp + 0x570], 5
call fcn.004025cc
lea ecx, [esp + 0x124]
mov byte [esp + 0x570], 4
call fcn.004025cc
lea ecx, [esp + 0xbc]
mov dword [esp + 0x570], esi
call fcn.004035e1
lea ecx, [esp + 0xbc]
call fcn.00402925
xor al, al
jmp 0x40d1b4
cmp byte [ebp + 0x10], 0
mov bl, 1
je 0x40d190
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d190
mov edx, dword [ebp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40d190
xor bl, bl
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d1b2
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov al, bl
mov ecx, dword [esp + 0x568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.0044cdc7
mov esp, ebp
pop ebp
ret