Function at 0x445d70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 4
push edi
mov byte [esp + 0x13], bl
ja case.default.0x445d8a
jmp dword [eax*4 + 0x445fe4]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov cl, byte [eax]
test cl, cl
je 0x445dbd
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x445da4
mov cl, byte [eax + 1]
test cl, cl
je 0x445db7
mov byte [eax], 0x20
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x445da4
mov esi, dword [0x478640]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x28], 0x44
je 0x445e00
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
and eax, 0x1f
mov edx, dword [edx*4 + 0x478540]
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], 0
jne 0x445e00
mov esi, ecx
test esi, esi
jne 0x445ddc
lea eax, [esi + esi*4 + 4]
push 1
mov word [esp + 0x5e], ax
mov ecx, dword [esp + 0x5e]
and ecx, 0xffff
push ecx
call fcn.00441800
mov dword [esp + 0x64], eax
mov dword [eax], esi
mov edx, dword [esp + 0x64]
add esp, 8
xor ecx, ecx
test esi, esi
lea edi, [edx + 4]
lea ebp, [esi + edx + 4]
jle 0x445e74
mov edx, ecx
mov eax, ecx
sar edx, 5
and eax, 0x1f
mov edx, dword [edx*4 + 0x478540]
lea eax, [eax + eax*8]
lea eax, [edx + eax*4]
mov dl, byte [eax + 4]
test dl, 0x10
jne 0x445e5d
mov byte [edi], dl
mov eax, dword [eax]
mov dword [ebp], eax
jmp 0x445e67
mov byte [edi], 0
mov dword [ebp], 0xffffffff
inc ecx
inc edi
add ebp, 4
cmp ecx, esi
jl 0x445e35
mov edx, dword [esp + 0x5c]
mov al, byte [esp + 0x13]
test al, al
je 0x445eaa
xor edi, edi
lea eax, [edx + 4]
lea ecx, [esi + edx + 4]
cmp esi, 3
mov edx, esi
jl 0x445e91
mov edx, 3
cmp edi, edx
jge 0x445ea5
mov byte [eax], 0
inc edi
mov dword [ecx], 0xffffffff
inc eax
add ecx, 4
jmp 0x445e85
mov ebx, 8
call fcn.0043d0a0
mov dword [eax], 0
call fcn.0043d0b0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x7c]
push 0
push eax
push ebx
push 1
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043b470
add esp, 4
test esi, esi
jne 0x445f17
push edi
call fcn.0043d020
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 2
jne 0x445f43
push 0
call fcn.0043dae0
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
test eax, eax
jne 0x445f7e
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp eax, 4
jne 0x445fa5
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], 0
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x7c], eax
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
call fcn.0043d0a0
mov dword [eax], 0x16
call fcn.0043d0b0
pop edi
pop esi
mov dword [eax], 0
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret