Function at 0x100040a0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019053
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x10023260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18c]
push eax
call fcn.10003180
add esp, 4
cmp dword [ebp - 0x178], 0x10
lea eax, [ebp - 0x18c]
cmovae eax, dword [ebp - 0x18c]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100044f0
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.10006d40
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea eax, [ebp - 0x114]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0x40
lea eax, [ebp - 0x1f8]
push 0
push eax
mov dword [ebp - 0x1fc], 0x44
call fcn.10006d40
add esp, 0xc
cmp byte [ebp - 0x114], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1d0], 0x80
mov dword [ebp - 0x1b8], 0
movq qword [ebp - 0x1b4], xmm0
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x100041cb
xor ecx, ecx
jmp 0x100041dd
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100041d4
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.10002710
cmp dword [edi + 0x10], 0
mov byte [ebp - 4], 1
je 0x10004284
push 0x1001a7c4
lea ecx, [ebp - 0x174]
call fcn.10002330
push edi
push eax
lea eax, [ebp - 0x15c]
push eax
mov byte [ebp - 4], 2
call fcn.10002b40
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 3
call fcn.10004690
cmp dword [ebp - 0x148], 0x10
jb 0x1000424e
push dword [ebp - 0x15c]
call fcn.100050fe
add esp, 4
cmp dword [ebp - 0x160], 0x10
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
mov byte [ebp - 4], 1
jb 0x10004284
push dword [ebp - 0x174]
call fcn.100050fe
add esp, 4
push 1
push 0x1001a7c8
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x148], 0xf
mov dword [ebp - 0x14c], 0
mov byte [ebp - 0x15c], 0
call fcn.10002710
push 2
push 0x1001a7cc
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 4
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.10002710
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x174]
push eax
mov byte [ebp - 4], 5
call fcn.10002b40
lea ecx, [ebp - 0x15c]
push ecx
push eax
lea eax, [ebp - 0x1a4]
push eax
mov byte [ebp - 4], 6
call fcn.10002ad0
add esp, 0x18
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 7
call fcn.10004690
cmp dword [ebp - 0x190], 0x10
jb 0x10004346
push dword [ebp - 0x1a4]
call fcn.100050fe
add esp, 4
cmp dword [ebp - 0x160], 0x10
mov dword [ebp - 0x190], 0xf
mov dword [ebp - 0x194], 0
mov byte [ebp - 0x1a4], 0
jb 0x10004378
push dword [ebp - 0x174]
call fcn.100050fe
add esp, 4
cmp dword [ebp - 0x130], 0x10
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
jb 0x100043aa
push dword [ebp - 0x144]
call fcn.100050fe
add esp, 4
cmp dword [ebp - 0x148], 0x10
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
mov byte [ebp - 4], 1
jb 0x100043e0
push dword [ebp - 0x15c]
call fcn.100050fe
add esp, 4
cmp dword [esi + 0x10], 0
je 0x100043f6
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x12c]
call fcn.10004690
cmp dword [ebp - 0x118], 0x10
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x12c]
cmovae ecx, dword [ebp - 0x12c]
add eax, ecx
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
cmovae ecx, dword [ebp - 0x12c]
push eax
push ecx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
call fcn.10002bc0
lea eax, [ebp - 0x1a5]
push eax
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 8
mov byte [ebp - 0x1a5], 0
call fcn.10004a30
mov edi, dword [ebp - 0x138]
lea eax, [ebp - 0x1b8]
push eax
lea eax, [ebp - 0x1fc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100044b1
push dword [ebp - 0x1b8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1b4]
call esi
test edi, edi
je 0x100044be
push edi
call fcn.100050fe
add esp, 4
cmp dword [ebp - 0x118], 0x10
jb 0x100044d5
push dword [ebp - 0x12c]
call fcn.100050fe
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
cmp dword [ebp - 0x178], 0x10
jb 0x10004507
push dword [ebp - 0x18c]
call fcn.100050fe
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000629a
mov esp, ebp
pop ebp
ret