Function at 0x412530
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], 0
call fcn.004255e0
mov dl, byte [esi + 8]
mov ecx, dword [esi + 4]
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x412598
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x4126d3
mov byte [esp + 0x13], 0
cmp byte [esi + 0x10], 0
mov eax, 0x48b560
mov dword [esp + 0x64], 1
cmove eax, dword [esp + 0x40]
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [esp + 0x40], eax
mov eax, 5
cmovne eax, ecx
mov word [esp + 0x68], ax
cmp dword [esi + 0x18], ecx
jne 0x4125d7
cmp dword [esi + 0x1c], ecx
jne 0x4125d7
cmp dword [esi + 0x20], ecx
je 0x412667
mov eax, dword [esp + 0xc]
test al, 0x20
je 0x4125f6
and eax, 0xffffffdf
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.00414010
mov eax, dword [esp + 0xc]
test al, 0x40
je 0x412611
and eax, 0xffffffbf
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.00414010
mov eax, dword [esp + 0xc]
test al, al
jns 0x41262e
and eax, 0xffffff7f
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.00414010
mov eax, dword [esp + 0xc]
test eax, 0x100
je 0x41264a
and eax, 0xfffffeff
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.00414010
mov eax, dword [esi + 0x18]
or dword [esp + 0x64], 0x100
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x78], eax
cmp dword [esi + 0x14], 0
je 0x41286b
or dword [esp + 0x14], 4
cmp dword [0x495f18], 0
jne 0x4126b3
push 0x4c
call fcn.0045a053
add esp, 4
mov ecx, eax
call fcn.004136c0
mov edx, eax
mov edi, 0x495f18
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4126b3
test edx, edx
je 0x4126b3
push ecx
mov ecx, edx
call fcn.00413680
mov eax, dword [0x495f18]
cmp dword [eax], 5
mov eax, dword [esp + 0x14]
jge 0x41286f
or eax, 0x1000000
mov dword [esp + 0x14], eax
jmp 0x41286f
call fcn.00413970
cmp eax, 3
jge 0x4126eb
push 0
mov ecx, edi
call fcn.00411ec0
jmp 0x412bb8
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x41270b
push 0
mov ecx, edi
call fcn.00411ec0
jmp 0x412bb8
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
cmp esi, edi
je 0x412753
push 1
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x412731
cmp byte [0x494ee8], al
jne 0x412be9
int3
mov eax, dword [esp + 0xc]
test al, 4
je 0x41274c
and eax, 0xfffffffb
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.00414010
add esi, 4
cmp esi, edi
jne 0x412714
push ecx
lea ecx, [esp + 0x3c]
call fcn.004256b0
test al, al
jne 0x4127b2
test byte [esp + 0xc], 8
je 0x412774
lea ecx, [esp + 0x90]
call fcn.004147b0
mov esi, dword [esp + 0x18]
mov ecx, esi
push 0
call fcn.00411ec0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x41279c
push eax
call dword [0x495c30]
push dword [esp + 0x7c]
call fcn.0045a32d
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar ecx, 2
sar eax, 2
test eax, eax
je 0x412bf0
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x412816
push 0
push 0
lea eax, [ecx*4]
push eax
push edi
push 0x20002
push 0
push edx
call dword [0x495c28]
test eax, eax
setne al
test al, al
je 0x412816
mov edi, dword [esp + 0x18]
mov eax, 0x80000
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
jmp 0x412598
test byte [esp + 0xc], 0x10
je 0x412829
lea ecx, [esp + 0x90]
call fcn.004147b0
mov esi, dword [esp + 0x18]
mov ecx, esi
push 0
call fcn.00411ec0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x41279c
push eax
call dword [0x495c30]
push dword [esp + 0x7c]
call fcn.0045a32d
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp byte [esi + 0x24], 0
je 0x41287e
or eax, 0x1000000
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x160], 7
push 0xffffffffffffffff
push eax
push dword [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x168], 0
lea ecx, [esp + 0x158]
movaps xmmword [esp + 0x8c], xmm0
mov word [esp + 0x158], ax
call fcn.00409cb0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4129ab
or dword [esp + 0x14], 0x400
push 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x41290d
test dword [esp + 0xc], 0x200
je 0x4128ff
lea ecx, [esp + 0x90]
call fcn.004147b0
push 0
mov ecx, edi
call fcn.00411ec0
jmp 0x412b7b
cmp dword [esp + 0x160], 8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x154]
cmovae ecx, dword [esp + 0x154]
push 0
push dword [esp + 0x24]
push eax
movzx eax, byte [esp + 0x27]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x412a49
mov eax, dword [esp + 0xc]
test eax, 0x800
je 0x41298a
and eax, 0xfffff7ff
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004147b0
mov eax, dword [esp + 0xc]
test eax, 0x400
je 0x41299d
lea ecx, [esp + 0x164]
call fcn.004087f0
push 0
mov ecx, edi
call fcn.00411ec0
jmp 0x412b7b
cmp dword [esp + 0x160], 8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x154]
cmovae ecx, dword [esp + 0x154]
push 0
push 0
push eax
movzx eax, byte [esp + 0x27]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x412a4d
mov eax, dword [esp + 0xc]
test eax, 0x2000
je 0x412a13
and eax, 0xffffdfff
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004147b0
mov eax, dword [esp + 0xc]
test eax, 0x1000
je 0x412a3b
mov eax, dword [esp + 0x178]
cmp eax, 0x10
jb 0x412a3b
inc eax
lea ecx, [esp + 0x164]
push eax
push dword [esp + 0x168]
call fcn.0040a4f0
push 0
mov ecx, edi
call fcn.00411ec0
jmp 0x412b7b
mov esi, dword [esp + 0x2c]
push dword [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.0040f570
push dword [esp + 0x84]
lea ecx, [esp + 0x24]
call fcn.0040f570
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x412b25
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x412b1b
test dword [esp + 0xc], 0x4000
je 0x412acf
lea ecx, [esp + 0x90]
call fcn.00414010
lea ecx, [esp + 0x1c]
call fcn.0041ba60
push eax
lea ecx, [esp + 0x34]
call fcn.00411ec0
push 1
push 1
lea ecx, [esp + 0x38]
call fcn.00412040
push 0
mov ecx, edi
call fcn.00411ec0
lea ecx, [esp + 0x34]
call fcn.0040f500
lea ecx, [esp + 0x1c]
call fcn.0041b990
lea ecx, [esp + 0x14c]
call fcn.004085c0
jmp 0x412bb8
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x412b36
push 0xffffffffffffffff
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x1c]
call fcn.0041ba60
push eax
mov ecx, edi
call fcn.00411ec0
lea ecx, [esp + 0x1c]
call fcn.0040f500
lea ecx, [esp + 0x20]
call fcn.0040f500
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0040f500
lea ecx, [esp + 0x1c]
call fcn.0040f500
mov eax, dword [esp + 0x160]
cmp eax, 8
jb 0x412b9c
inc eax
lea ecx, [esp + 0x14c]
push eax
push dword [esp + 0x150]
call fcn.0040b1a0
xor eax, eax
mov dword [esp + 0x160], 7
mov word [esp + 0x14c], ax
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x412bd3
push eax
call dword [0x495c30]
push dword [esp + 0x7c]
call fcn.0045a32d
add esp, 4
mov ecx, dword [esp + 0x17c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
push 1
call fcn.0046515c
push str.invalid_vector_T__subscript
call fcn.00458f46
int3