Function at 0x45821f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x45824a
cmp eax, 1
je 0x45824a
jle 0x458252
cmp eax, 3
jle 0x45824a
cmp eax, 4
jne 0x458252
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x45827d
call fcn.0044f6ca
mov dword [eax], 0x16
call fcn.0044f6dd
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x458405
inc eax
cmp byte [eax], bl
jne 0x45826c
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x45827d
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x45826c
push esi
mov esi, dword [0x4c8d70]
push edi
push 0x11
xor eax, eax
cmp esi, ebx
pop ecx
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
je 0x4582c1
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x4c8d80]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x4582c1
dec esi
dec ecx
cmp esi, ebx
jne 0x4582a1
lea eax, [esi + esi*4 + 4]
xor edx, edx
movzx ecx, ax
inc edx
mov word [ebp - 0x36], ax
call fcn.004501ac
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x4582eb
call fcn.0044f6ca
mov dword [eax], 0xc
jmp 0x4583b5
cmp esi, ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x458339
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x4c8d80]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x458325
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x45832a
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4582fe
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x45836a
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x458350
mov edi, esi
jmp 0x458353
push 3
pop edi
cmp edx, edi
jge 0x458363
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x458347
mov dword [ebp - 0xc], 8
call fcn.0044f6ca
mov dword [eax], ebx
call fcn.0044f6dd
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0044d3dd
cmp esi, ebx
pop ecx
jne 0x4583ba
push edi
call fcn.0044f6f0
pop ecx
or eax, 0xffffffff
jmp 0x458403
cmp dword [ebp + 8], 2
jne 0x4583c6
push ebx
call fcn.0044bd9e
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4583f3
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4583fc
cmp dword [ebp + 8], 4
je 0x4583ec
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret