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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e458
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x44000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor bl, bl
lea ecx, [ebp - 0x28]
cmp dword [0x443d70], 8
mov eax, 0x443d5c
push 0x437fe0
cmovae eax, dword [0x443d5c]
mov edx, SysReAllocString
push eax
mov byte [ebp - 0x435], bl
call fcn.00407a3b
add esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x404e0c
push 0xe
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404ed0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404e0c
lea eax, [ebp - 0x428]
mov dword [ebp - 0x434], 0
mov edx, 0x437f70
mov dword [ebp - 0x430], 0x200
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x42c], eax
call fcn.00405200
cmp dword [ebp - 0x14], 8
mov esi, eax
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x43c], eax
test ebx, ebx
je 0x404d1d
mov edi, dword [esi]
add edi, ebx
cmp edi, dword [esi + 4]
jb 0x404d00
push edi
mov ecx, esi
call fcn.00405160
mov ecx, dword [esi]
lea eax, [ebx + ebx]
push eax
mov eax, dword [esi + 8]
push dword [ebp - 0x43c]
lea eax, [eax + ecx*2]
push eax
call fcn.0042d5d0
add esp, 0xc
mov dword [esi], edi
mov edx, 0x437f68
mov ecx, esi
call fcn.00405200
mov ebx, dword [ebp + 8]
mov edi, eax
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x43c], eax
jb 0x404d3f
mov ebx, dword [ebx]
test eax, eax
je 0x404d71
mov esi, dword [edi]
add esi, eax
cmp esi, dword [edi + 4]
jb 0x404d5a
push esi
mov ecx, edi
call fcn.00405160
mov eax, dword [ebp - 0x43c]
mov ecx, dword [edi]
add eax, eax
push eax
mov eax, dword [edi + 8]
push ebx
lea eax, [eax + ecx*2]
push eax
call fcn.0042d5d0
add esp, 0xc
mov dword [edi], esi
push 0x40
lea eax, [ebp - 0x48c]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x44c], xmm0
call fcn.00419740
mov eax, dword [ebp - 0x434]
add esp, 0xc
mov ecx, dword [ebp - 0x42c]
xor edx, edx
mov dword [ebp - 0x490], 0x44
mov word [ecx + eax*2], dx
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x490]
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push dword [ebp - 0x42c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404de9
push dword [ebp - 0x448]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x44c]
call esi
mov bl, 1
jmp 0x404def
mov bl, byte [ebp - 0x435]
mov eax, dword [ebp - 0x42c]
lea ecx, [ebp - 0x428]
cmp eax, ecx
je 0x404e08
push eax
call fcn.0041aac0
add esp, 4
test bl, bl
jne 0x404e48
mov eax, dword [0x441dbc]
test eax, eax
jne 0x404e31
push ecx
mov edx, str.Log_Debug
xor ecx, ecx
call fcn.0040c188
add esp, 4
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [0x441dbc], eax
cmp eax, 2
jne 0x404e48
push str._POP__CPopHelper::StartSeGame___
push str.Log_Debug
call fcn.0040b248
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x404e5a
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00402680
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004171a2
mov esp, ebp
pop ebp
ret 4