Function at 0x41122e
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
cmp dword [ebp + 0xc], 0
jne 0x411251
call fcn.00410d9c
mov dword [eax], 0x16
call fcn.0040f4e2
or eax, 0xffffffff
leave
ret
cmp dword [ebp + 0x10], 0
je 0x41123c
cmp dword [ebp + 8], 4
jbe 0x411267
call fcn.00410d87
and dword [eax], 0
jmp 0x41123c
push ebx
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
call fcn.0041624d
or ebx, 0xffffffff
add esp, 0x10
cmp eax, ebx
jne 0x4112a5
push dword [ebp - 4]
call fcn.00410dc0
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.00410dc0
pop ecx
pop ecx
jmp 0x4112e8
cmp dword [ebp + 8], 4
mov dword [ebp - 8], edi
setne al
movzx eax, al
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004115cb
add esp, 0xc
test al, al
jne 0x4112ef
push dword [ebp - 8]
call fcn.00410dc0
push dword [ebp - 4]
mov dword [ebp - 8], edi
call fcn.00410dc0
push dword [ebp - 0xc]
mov dword [ebp - 4], edi
call fcn.00410dc0
add esp, 0xc
mov eax, ebx
jmp 0x411430
push esi
call fcn.00410d87
push 0x44
pop esi
push esi
mov dword [eax], edi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.0040d640
mov ax, word [ebp - 0x10]
add esp, 0xc
cmp dword [ebp + 8], 4
mov word [ebp - 0x3a], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push edi
push dword [ebp - 4]
mov eax, 0x408
lea ecx, [eax - 8]
cmovne eax, ecx
push eax
push 1
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
test eax, eax
je 0x411399
mov eax, dword [ebp + 8]
cmp eax, 2
je 0x411434
test eax, eax
jne 0x4113be
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411399
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp edi, ebx
je 0x411389
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x411394
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x18]
jmp 0x4113db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00410d40
pop ecx
cmp edi, ebx
je 0x4113b1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x4113db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4113db
cmp eax, 4
jne 0x4113ff
cmp edi, ebx
je 0x4113ce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x4113d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push dword [ebp - 8]
call fcn.00410dc0
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.00410dc0
push dword [ebp - 0xc]
and dword [ebp - 4], 0
call fcn.00410dc0
mov eax, ebx
jmp 0x41142c
cmp edi, ebx
je 0x41140a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.00410dc0
push dword [ebp - 4]
and dword [ebp - 8], 0
call fcn.00410dc0
push dword [ebp - 0xc]
and dword [ebp - 4], 0
call fcn.00410dc0
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
leave
ret
push 0
call fcn.0040fc89
int3