Function at 0x412570
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4157ce
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004096b0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x30]
cmovae ecx, dword [ebp + 0x20]
add eax, ecx
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xe0]
call fcn.004096b0
mov esi, eax
mov byte [ebp - 4], 3
mov ecx, 0x7ffffffe
mov edx, dword [ebp - 0x18]
sub ecx, edx
cmp ecx, 1
jb 0x412944
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, dword [ebp - 0x28]
push eax
push 1
push 0x416c98
push ecx
push dword [ebp - 0x98]
lea ecx, [ebp - 0xb0]
call fcn.00409b10
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x9c]
mov eax, edx
mov ecx, dword [ebp - 0xa0]
sub eax, ecx
cmp eax, 1
jb 0x412676
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xb0]
cmovae eax, dword [ebp - 0xb0]
mov dword [eax + ecx*2], 0x22
lea eax, [ebp - 0xb0]
jmp 0x412693
push 1
push ecx
mov byte [ebp - 0x98], 0
lea ecx, [ebp - 0xb0]
push dword [ebp - 0x98]
push 1
call fcn.00412950
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0xc8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push esi
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0x40]
call fcn.00412ad0
mov ecx, dword [ebp - 0xb4]
cmp ecx, 8
jb 0x412717
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41270d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4127a2
push ecx
push edx
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 8
jb 0x412753
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412749
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4127a2
push ecx
push edx
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp - 0xcc]
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
cmp ecx, 8
jb 0x4127b2
mov edx, dword [ebp - 0xe0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4127a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4127a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041342f
add esp, 8
push 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edx, [ebp - 0x50]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
push edx
cmovae eax, dword [ebp - 0x28]
lea edx, [ebp - 0x94]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41280c
xor esi, esi
jmp 0x412814
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x41284e
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412844
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412918
push ecx
push edx
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x41289c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412892
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412918
push ecx
push edx
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x4128e0
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4128d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412918
push ecx
push edx
call fcn.0041342f
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x412928
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41291e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41291e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041342f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412ed8
mov esp, ebp
pop ebp
ret
call fcn.00401480
int3