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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4247b2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4304f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push str.ClientVersion
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x11], bl
call fcn.00412e30
add esp, 8
mov dword [ebp - 4], ebx
lea ebx, [ebp - 0x1c]
call fcn.00402bd0
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
jge 0x40406f
push 0x80070057
call fcn.00401000
movzx eax, word [eax]
sub eax, 0x30
cmp eax, 5
jne 0x404214
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 1
jne 0x404214
mov eax, dword [eax]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
cmp eax, 0xd
jne 0x4040e8
lea ecx, [ebp - 0x20]
push ecx
mov ecx, str.taskId
call fcn.00401310
lea edi, [esi + 8]
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x20]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x18], 1
call fcn.00411bc0
mov eax, dword [eax]
push str.TASK_LAUNCH_VAULT
push eax
mov ebx, 3
call fcn.0041361c
add esp, 8
test eax, eax
jne 0x4040eb
mov byte [ebp + 0xb], 1
jmp 0x4040ef
mov ebx, dword [ebp - 0x18]
mov byte [ebp + 0xb], 0
mov dword [ebp - 4], 1
test bl, 2
je 0x404120
mov eax, dword [ebp - 0x24]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404120
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
test bl, 1
je 0x40414b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40414b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], 0
je 0x404214
lea ecx, [ebp + 8]
push str.ClientPath
push ecx
call fcn.00412e30
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4041f1
lea esi, [ebp - 0x24]
call fcn.004047d0
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004158a0
add esp, 0xc
lea ecx, [ebp - 0x7c]
push ecx
mov dword [ebp - 0x7c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 0x11], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4041f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404214
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40423a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
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