Function at 0x440290
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xa4]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], ebx
call fcn.00458cd0
mov al, byte [esi + 0x24]
xor ecx, ecx
mov edx, dword [esi + 0x20]
mov byte [ebp - 0x35], al
mov dword [ebp - 0x3c], ecx
test edx, edx
je 0x44040a
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x4402ed
mov byte [ebp - 0x35], cl
jmp 0x44040a
mov ecx, dword [edx + 4]
sub ecx, eax
sar ecx, 2
cmp ecx, 0x3fffffff
jbe 0x44030b
push 0
mov ecx, edi
call fcn.0043fee0
jmp 0x4406df
mov edi, dword [edx + 4]
mov esi, eax
cmp esi, edi
je 0x44036f
push 1
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x440355
or ebx, 2
call sub.KERNEL32.dll_GetLastError
push eax
push 3
push 0xd8
push str.c:_bc_bwin_archive_src_baseprocesslaunch_win.cc
lea ecx, [ebp - 0x16c]
call fcn.00431820
add eax, 0x10
push str.Check_failed:_result.
push eax
call fcn.00415b8c
add esp, 8
test bl, 2
je 0x440368
lea ecx, [ebp - 0x16c]
and ebx, 0xfffffffd
call fcn.00431af0
add esi, 4
cmp esi, edi
jne 0x440314
push 1
lea ecx, [ebp - 0xa4]
call fcn.00458d80
test al, al
jne 0x4403b9
test bl, 4
je 0x440390
lea ecx, [ebp - 0x16c]
call fcn.00431af0
mov ecx, dword [ebp - 0x40]
push 0
call fcn.0043fee0
lea ecx, [ebp - 0xa4]
call fcn.00458d60
mov eax, dword [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x48]
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar ecx, 2
sar eax, 2
test eax, eax
je 0x4406fd
lea eax, [ecx*4]
push eax
push edx
push 0x20002
lea ecx, [ebp - 0xa4]
call fcn.00458e00
test al, al
jne 0x4403fb
test bl, 8
jmp 0x440383
mov edi, dword [ebp - 0x40]
mov ecx, 0x80000
mov byte [ebp - 0x35], 1
mov dword [ebp - 0x3c], ecx
cmp byte [esi + 0x2c], 0
mov eax, 0x4d3e5c
mov dword [ebp - 0x78], 1
cmove eax, dword [ebp - 0x9c]
xor edx, edx
cmp byte [esi + 0x1c], dl
mov dword [ebp - 0x9c], eax
mov eax, 5
cmovne eax, edx
mov word [ebp - 0x74], ax
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x440449
cmp dword [esi + 0x38], edx
jne 0x440449
cmp dword [esi + 0x3c], edx
je 0x44045f
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x78], 0x101
mov dword [ebp - 0x64], eax
cmp dword [esi + 0x30], edx
je 0x44047e
or ecx, 4
mov dword [ebp - 0x3c], ecx
call fcn.00446770
cmp eax, 5
mov eax, dword [ebp - 0x3c]
jge 0x440481
or eax, 0x1000000
jmp 0x440481
mov eax, dword [ebp - 0x3c]
mov ecx, eax
xorps xmm0, xmm0
or ecx, 0x1000000
cmp byte [esi + 0x40], 0
movups xmmword [ebp - 0xb4], xmm0
cmove ecx, eax
cmp dword [esi + 0x14], 0
mov dword [ebp - 0x40], ecx
jne 0x4404ac
mov dword [ebp - 0x3c], 0
jmp 0x4404bd
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [ebp - 0x3c], eax
jb 0x4404bd
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 8], 7
push 0xffffffffffffffff
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call fcn.0041b708
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4405a5
or dword [ebp - 0x40], 0x400
push 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x440526
test bl, 0x10
je 0x440518
lea ecx, [ebp - 0x16c]
call fcn.00431af0
push 0
mov ecx, edi
call fcn.0043fee0
jmp 0x4406ba
cmp dword [ebp - 8], 8
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x3c]
movzx eax, byte [ebp - 0x35]
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x44]
cmovae ecx, dword [ebp - 0x1c]
push dword [ebp - 0x40]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x44]
mov esi, eax
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
jne 0x44060f
test bl, 0x40
je 0x440582
lea ecx, [ebp - 0x16c]
and ebx, 0xffffffbf
call fcn.00431af0
test bl, 0x20
je 0x44058f
lea ecx, [ebp - 0x34]
call fcn.004cd7ba
push 0
mov ecx, edi
call fcn.0043fee0
lea ecx, [ebp - 0x1c]
call fcn.00434920
jmp 0x4406df
cmp dword [ebp - 8], 8
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x3c]
movzx eax, byte [ebp - 0x35]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push 0
push dword [ebp - 0x40]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x440612
test ebx, 0x100
je 0x4405f5
lea ecx, [ebp - 0x16c]
and ebx, 0xfffffeff
call fcn.00431af0
test bl, bl
jns 0x440601
lea ecx, [ebp - 0x34]
call fcn.004cd7ba
push 0
mov ecx, edi
call fcn.0043fee0
jmp 0x4406ba
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00458b40
mov eax, dword [esi + 0x30]
test eax, eax
je 0x440692
push dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x440689
test ebx, 0x200
je 0x440649
lea ecx, [ebp - 0x164]
call fcn.00431880
lea ecx, [ebp - 0x5c]
call fcn.00458c90
push eax
lea ecx, [ebp - 0x4c]
call fcn.0043fee0
push 1
push 1
lea ecx, [ebp - 0x4c]
call fcn.00440100
push 0
mov ecx, edi
call fcn.0043fee0
lea ecx, [ebp - 0x4c]
call fcn.0043ff50
lea ecx, [ebp - 0x5c]
call fcn.00458ba0
lea ecx, [ebp - 0x1c]
call fcn.00434920
jmp 0x4406df
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x4406a2
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x5c]
call fcn.00458c90
push eax
mov ecx, edi
call fcn.0043fee0
lea ecx, [ebp - 0x5c]
call fcn.00458ba0
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x4406cf
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004329f0
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0xa4]
call fcn.00458d60
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.0049c268
int3