Function at 0x405580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4241c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov esi, ecx
mov byte [ebp - 0x281], 0
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], edi
mov word [ebp - 0x248], ax
push 0x44
lea ecx, [ebp - 0x2dc]
push edi
mov dword [ebp - 4], edi
push ecx
mov byte [ebp - 4], 1
call fcn.0041a000
xor eax, eax
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0x10]
push 0x4291f8
lea edi, [edx + 5]
mov ecx, esi
mov dword [ebp - 0x2dc], 0x44
mov word [ebp - 0x2ac], dx
mov dword [ebp - 0x2b0], 1
call fcn.0040aba0
test eax, eax
jne 0x405656
push eax
push ebx
or eax, 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00409060
lea esi, [edi + 3]
jmp 0x4056e2
lea eax, [ebp - 0x280]
push ebx
push eax
call fcn.0040a5d0
add esp, 8
mov ecx, eax
lea edx, [ebp - 0x264]
push edx
mov eax, esi
mov byte [ebp - 4], 2
call fcn.0040a680
add esp, 4
mov edi, eax
lea esi, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.00408ff0
mov esi, 8
cmp dword [ebp - 0x250], esi
jb 0x4056aa
mov eax, dword [ebp - 0x264]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 1
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], cx
cmp dword [ebp - 0x26c], esi
jb 0x4056e2
mov edx, dword [ebp - 0x280]
push edx
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x238]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413980
mov edi, eax
add esp, 4
test edi, edi
je 0x405808
mov eax, dword [ebp - 0x238]
lea ecx, [eax + eax + 2]
push ecx
push 0
push edi
call fcn.0041a000
mov edx, dword [ebp - 0x248]
add esp, 0xc
cmp dword [ebp - 0x234], esi
jae 0x405736
lea edx, [ebp - 0x248]
mov ecx, edi
jmp 0x405740
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
test ax, ax
jne 0x405740
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x22a]
push eax
mov word [ebp - 0x22c], dx
call fcn.0041a000
add esp, 0xc
cmp dword [ebx + 0x14], esi
jb 0x405778
mov eax, dword [ebx]
jmp 0x40577a
mov eax, ebx
push eax
lea ecx, [ebp - 0x22c]
push 0x105
push ecx
call fcn.00414c64
add esp, 0xc
push 0x4290e4
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebx + 0x14], esi
jb 0x4057aa
mov eax, dword [ebx]
jmp 0x4057ac
mov eax, ebx
lea ecx, [ebp - 0x294]
push ecx
lea edx, [ebp - 0x2dc]
push edx
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405808
mov edx, dword [ebp - 0x294]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x290]
push eax
call esi
mov bl, 1
mov esi, 8
test edi, edi
je 0x405828
push edi
call fcn.00414741
add esp, 4
jmp 0x405828
mov bl, byte [ebp - 0x281]
jmp 0x4057f9
cmp dword [ebp - 0x234], esi
jb 0x40583f
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.004140b8
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret