Function at 0x40f240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474033
push eax
mov dword fs:[0], esp
sub esp, 0xa48
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f27a
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
add eax, 0x10
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], 0
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f2ad
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 0x18], eax
add eax, 0x10
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f2dd
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push ebx
push esi
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x84], ebx
mov byte [ebp - 4], 2
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f30f
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
push edi
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 3
call fcn.00429930
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40f33d
push 0x80004005
call fcn.00402670
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402a30
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x68], esi
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 5
cmp eax, 1
jne 0x40f3a9
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push esi
push dword [ebp + 0x10]
jne 0x40f396
push str.__s__x__o__ibck___s____s_
push eax
call fcn.00405230
add esp, 0x14
jmp 0x40f453
push str.__s__a__ep1__ibck___s____s_
push eax
call fcn.00405230
add esp, 0x14
jmp 0x40f453
cmp eax, 2
jne 0x40f3f7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.004016a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004083c0
push str.haozipc.exe
push str.haozip.exe
lea ecx, [ebp - 0x14]
call fcn.00408880
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push esi
push dword [ebp - 0x14]
jne 0x40f3f0
push str.__s__e___s___o__s_
jmp 0x40f429
push str.__s__a__tzip___s____s_
jmp 0x40f429
cmp eax, 3
jne 0x40f453
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.004016a0
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 7
push dword [eax]
lea eax, [ebp - 0x10]
push esi
push dword [ebp - 0x14]
jne 0x40f424
push str.__s___x___s____s_
jmp 0x40f429
push str.__s____s____s_
push eax
call fcn.00405230
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
add esp, 0x14
or ecx, 0xffffffff
lea eax, [edx + 0xc]
mov byte [ebp - 4], 5
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f453
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
push 0xfffffffffffffff6
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
jge 0x40f4e5
push 0
lea ecx, [ebp - 0x10]
call fcn.00408500
push dword [ebp - 0x10]
lea eax, [ebp - 0xa54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
lea eax, [ebp - 0xa54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40f53c
push 0xffffffffffffffff
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f55c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f57c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f599
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x40f5b7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40f5d4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
pop esi
pop ebx
jg 0x40f5f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret