Function at 0x408ef0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9cb7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x318
mov eax, dword [0x4f2480]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x29c], 0
movups xmmword [ebp - 0x2b0], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408f70
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0041d510
mov dword [ebp - 4], 0
mov eax, accept
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x4094e5
cmp dword [esi + 0x14], 7
jbe 0x408fb4
mov esi, dword [esi]
push ecx
push esi
push 1
push 0x4e7adc
push ecx
push dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2c8]
call fcn.0041ec90
push 2
push 0x4e7ae8
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 1
call fcn.0041b8a0
mov dword [ebp - 0x288], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x298], xmm0
mov dword [ebp - 0x284], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x298], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x288], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 2
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x40903b
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x298]
push eax
call fcn.0041b8a0
mov dword [ebp - 0x270], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x280], xmm0
mov dword [ebp - 0x26c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x280], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x270], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 2
push 0x4e7ae0
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.0041b8a0
mov dword [ebp - 0x258], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x268], xmm0
mov dword [ebp - 0x254], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x268], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x258], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2b0]
cmp dword [ebp - 0x29c], 7
lea ecx, [ebp - 0x268]
push dword [ebp - 0x2a0]
cmova eax, dword [ebp - 0x2b0]
push eax
call fcn.0041b8a0
mov dword [ebp - 0x240], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x250], xmm0
mov dword [ebp - 0x23c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push 1
push 0x4e7adc
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.0041b8a0
mov dword [ebp - 0x228], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x238], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x228], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x23c]
cmp ecx, 7
jbe 0x409200
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4091f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ea
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
cmp ecx, 7
jbe 0x40925d
mov edx, dword [ebp - 0x268]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409253
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ea
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 0x26c]
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
cmp ecx, 7
jbe 0x4092ba
mov edx, dword [ebp - 0x280]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4092b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ea
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
cmp ecx, 7
jbe 0x409317
mov edx, dword [ebp - 0x298]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40930d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ea
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 0x2b4]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp ecx, 7
jbe 0x409374
mov edx, dword [ebp - 0x2c8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40936a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ea
push ecx
push edx
call fcn.0049d99f
add esp, 8
cmp dword [ebp - 0x224], 7
lea ecx, [ebp - 0x2e0]
push ecx
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x328], 0x44
push ecx
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x238]
cmova eax, dword [ebp - 0x238]
push 0
push 0
push eax
push 0
movlpd qword [ebp - 0x324], xmm0
movlpd qword [ebp - 0x31c], xmm0
movlpd qword [ebp - 0x314], xmm0
movlpd qword [ebp - 0x30c], xmm0
movlpd qword [ebp - 0x304], xmm0
movlpd qword [ebp - 0x2fc], xmm0
movlpd qword [ebp - 0x2f4], xmm0
movlpd qword [ebp - 0x2ec], xmm0
movups xmmword [ebp - 0x2e0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40940b
mov byte [ebp - 0x2c9], al
jmp 0x409428
push dword [ebp - 0x2e0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2dc]
call esi
mov byte [ebp - 0x2c9], 1
mov ecx, dword [ebp - 0x224]
cmp ecx, 7
jbe 0x409468
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40945e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ef
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov ecx, dword [ebp - 0x29c]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp ecx, 7
jbe 0x4094c1
mov edx, dword [ebp - 0x2b0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4094b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4094ef
push ecx
push edx
call fcn.0049d99f
add esp, 8
mov al, byte [ebp - 0x2c9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049d991
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401350
call fcn.004a2f76
call fcn.004a2f76
int3