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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4218dd
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x428040]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x428040]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x2c], edi
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407074
push 0x44
lea eax, [esp + 0x50]
push edi
push eax
call fcn.0040faf0
add esp, 0xc
xor eax, eax
push 0x206
lea ecx, [esp + 0x9a]
push edi
push ecx
mov dword [esp + 0x58], 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0xa0], di
call fcn.0040faf0
mov edx, dword [0x42a3c0]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x42a3c0
call eax
mov edx, dword [0x42a3c0]
add eax, 0x10
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x42a3c0
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
lea ebx, [esp + 0x18]
mov dword [esp + 0x2b0], edi
call fcn.00407860
mov byte [esp + 0x2b0], 1
mov ecx, dword [eax]
lea edx, [esi + 0x30]
push edx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 1
call fcn.00407930
test al, al
je 0x406f71
mov eax, dword [esp + 0x48]
cmp dword [eax - 0xc], edi
mov byte [esp + 0x17], 1
jne 0x406f76
mov byte [esp + 0x17], 0
mov dword [esp + 0x2b0], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x406fa4
lea edi, [eax + 4]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [edi], 0
jne 0x406fa4
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
cmp byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
je 0x406fd8
mov ebx, dword [esp + 0x48]
mov ecx, dword [esi + 0x40]
push ebx
push ecx
push 0x424314
lea edx, [esp + 0xa0]
push 0x104
push edx
call fcn.0040e05a
add esp, 0x14
jmp 0x406ffa
mov eax, dword [esi + 0x40]
push eax
push str.__s_
lea ecx, [esp + 0x9c]
push 0x104
push ecx
call fcn.0040e05a
mov ebx, dword [esp + 0x58]
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xb4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407078
add esi, 8
push esi
call fcn.00407120
lea eax, [ebx - 0x10]
mov dword [esp + 0x2b0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407054
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407074
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x4070eb
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x20]
push eax
call edi
add esi, 8
push esi
call fcn.00407120
lea eax, [ebx - 0x10]
mov dword [esp + 0x2b0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0040d942
mov esp, ebp
pop ebp
ret