Function at 0x4083d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595da0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x408612
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040c2d0
mov dword [ebp - 4], esi
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40843a
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
call fcn.0040bce0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x408467
push 0x80004005
call fcn.0040c390
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov ebx, 1
mov eax, dword [edi - 8]
mov ecx, ebx
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40849e
push 0x104
lea ecx, [ebp + 8]
call fcn.0040c110
mov edi, dword [ebp + 8]
mov eax, dword [esi - 8]
sub ebx, dword [esi - 4]
sub eax, 0x104
or eax, ebx
jge 0x4084bd
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0040c110
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
mov edx, esi
push ecx
push edi
mov eax, dword [eax]
mov ecx, dword [eax]
call fcn.0050b560
push dword [esi - 8]
push esi
call fcn.00551cd2
add esp, 0x10
test eax, eax
js 0x408608
cmp eax, dword [esi - 8]
jg 0x408608
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi - 8]
push edi
call fcn.00551cd2
add esp, 8
test eax, eax
js 0x408608
cmp eax, dword [edi - 8]
jg 0x408608
xor ecx, ecx
mov dword [edi - 0xc], eax
push esi
mov word [edi + eax*2], cx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c2d0
push ecx
mov byte [ebp - 4], 3
mov ebx, esp
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040c3c0
add eax, 0x10
mov dword [ebx], eax
call fcn.00408700
test eax, eax
jne 0x40856c
push ecx
mov ecx, dword [ebp - 0x14]
mov ebx, esp
lea ecx, [ecx - 0x10]
call fcn.0040c3c0
add eax, 0x10
mov dword [ebx], eax
call fcn.00408700
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x408573
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408596
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4085b3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4085d0
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4085f1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0040c390
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x4086d8
mov eax, dword [esi + 4]
mov ebx, dword [esi]
mov dword [ebp + 8], eax
cmp ebx, eax
je 0x4086d8
mov edi, dword [ebx]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x408645
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 4
test edi, edi
jne 0x408659
mov dword [ebp - 4], 0xffffffff
jmp 0x4086cd
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00416e00
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
mov ecx, dword [eax + 0x104]
call fcn.0044d300
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40868a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push 5
push 0
mov eax, dword [eax]
push esi
push dword [eax]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4086bd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp + 8]
add ebx, 4
cmp ebx, eax
jne 0x408633
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4