Function at 0x100644e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100dec4c
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x1010e07c]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x2c]
xor ebx, ebx
push 0x40
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
xor eax, eax
lea ecx, [esp + 0xdc]
push ebx
push ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.100b2ed0
movzx edx, byte [ebp + 0x14]
mov eax, dword [esi + 0x10]
add esp, 0xc
neg edx
sbb edx, edx
and edx, 5
mov word [esp + 0x104], dx
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0xd4], 0x44
mov dword [esp + 0x100], 1
neg ecx
or ecx, eax
push ecx
call fcn.100b21c0
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x1006474a
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.100042d0
mov dword [esp + 0x180], ebx
lea eax, [esp + 0x3c]
push str.new_FAILED.
push eax
call fcn.10007530
add esp, 8
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.100065d0
mov byte [esp + 0x180], 1
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.100065d0
mov byte [esp + 0x180], 2
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x40]
call fcn.100043f0
mov byte [esp + 0x180], 3
push eax
lea edx, [esp + 0x13c]
push edx
push 0x10b
lea eax, [esp + 0x128]
push eax
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x180], 2
cmp dword [esp + 0x168], 8
jb 0x100646a3
mov ecx, dword [esp + 0x154]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], dx
mov byte [esp + 0x180], 1
mov esi, 0x10
cmp dword [esp + 0x130], esi
jb 0x100646e5
mov eax, dword [esp + 0x11c]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov byte [esp + 0x180], bl
cmp dword [esp + 0x14c], esi
jb 0x1006471a
mov ecx, dword [esp + 0x138]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.100029c0
xor al, al
jmp 0x10064daf
mov ecx, dword [esi + 0x10]
inc ecx
push ecx
push ebx
push eax
call fcn.100b2ed0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10064763
mov eax, dword [esi]
jmp 0x10064765
mov eax, esi
mov edx, dword [esp + 0x18]
push eax
push 0x100f59a0
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov byte [esp + 0x17], 1
cmp dword [edi + 0x10], ebx
ja 0x10064787
xor edi, edi
jmp 0x10064790
mov ecx, edi
call fcn.10006030
mov edi, eax
mov ecx, dword [esp + 0x38]
cmp dword [ecx + 0x10], ebx
ja 0x1006479d
xor eax, eax
jmp 0x100647a2
call fcn.10006030
lea ecx, [esp + 0x1c]
push ecx
xor ecx, ecx
cmp byte [ebp + 0x18], bl
lea edx, [esp + 0xd8]
push edx
mov edx, dword [esp + 0x20]
push edi
push ebx
setne cl
push 0x20
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10064995
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.100042d0
mov dword [esp + 0x180], 4
push esi
push ecx
push str.._cmd:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x54]
push str.CP_FAILED._GetLastError:
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
push eax
call fcn.1000f0c0
add esp, 8
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.100065d0
mov byte [esp + 0x180], 5
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.100065d0
mov byte [esp + 0x180], 6
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x40]
call fcn.100043f0
mov byte [esp + 0x180], 7
push eax
lea edx, [esp + 0x120]
push edx
push 0x11f
lea eax, [esp + 0x144]
push eax
push 1
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x180], 6
cmp dword [esp + 0x168], 8
jb 0x100648eb
mov ecx, dword [esp + 0x154]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], dx
mov byte [esp + 0x180], 5
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x1006492d
mov eax, dword [esp + 0x138]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov byte [esp + 0x180], 4
cmp dword [esp + 0x130], esi
jb 0x10064963
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.100029c0
mov byte [esp + 0x17], bl
jmp 0x10064d82
cmp byte [ebp + 0x1c], bl
je 0x10064b7f
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10064b7f
mov edx, dword [ebp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, ebx
je 0x10064b7f
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.100042d0
mov dword [esp + 0x180], 8
push esi
push ecx
push str.__dwRet:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x54]
push str.::WaitForSingleObject_FAILED._GetLastError:
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.100065d0
mov byte [esp + 0x180], 9
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.100065d0
mov byte [esp + 0x180], 0xa
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x40]
call fcn.100043f0
mov byte [esp + 0x180], 0xb
push eax
lea edx, [esp + 0x120]
push edx
push 0x129
lea eax, [esp + 0x144]
push eax
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x180], 0xa
cmp dword [esp + 0x168], 8
jb 0x10064ad5
mov ecx, dword [esp + 0x154]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], dx
mov byte [esp + 0x180], 9
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x10064b17
mov eax, dword [esp + 0x138]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov byte [esp + 0x180], 8
cmp dword [esp + 0x130], esi
jb 0x10064b4d
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.100029c0
mov byte [esp + 0x17], bl
jmp 0x10064d82
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x10064d66
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x10064d66
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x10064d66
push 1
push 2
lea ecx, [esp + 0x44]
call fcn.100042d0
mov dword [esp + 0x180], 0xc
mov edx, dword [esi]
push edx
push ecx
push str.._code:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x54]
push str.GECP_FAILED._GetLastError:
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
add esp, 4
push eax
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
push 0x22
mov edi, 0xf
push str.CProcUtility::CreateProcessInherit
lea ecx, [esp + 0x124]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov byte [esp + 0x124], bl
call fcn.100065d0
mov byte [esp + 0x180], 0xd
push edi
push str.ProcUtility.cpp
lea ecx, [esp + 0x140]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.100065d0
mov byte [esp + 0x180], 0xe
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x40]
call fcn.100043f0
mov byte [esp + 0x180], 0xf
push eax
lea edx, [esp + 0x120]
push edx
push 0x136
lea eax, [esp + 0x144]
push eax
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x180], 0xe
cmp dword [esp + 0x168], 8
jb 0x10064cbf
mov ecx, dword [esp + 0x154]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x168], 7
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], dx
mov byte [esp + 0x180], 0xd
mov esi, 0x10
cmp dword [esp + 0x14c], esi
jb 0x10064d01
mov eax, dword [esp + 0x138]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x14c], edi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
mov byte [esp + 0x180], 0xc
cmp dword [esp + 0x130], esi
jb 0x10064d37
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x130], edi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov dword [esp + 0x180], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.100029c0
mov byte [esp + 0x17], bl
jmp 0x10064d82
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10064d74
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10064d82
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov edx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], ebx
call fcn.100b2e04
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret