Function at 0x40c5a0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531cae
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5796f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x54], 8
lea eax, [esi + 0x40]
mov dword [ebp - 0x41c], esi
jb 0x40c5e4
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x24]
test eax, eax
jne 0x40c623
movsd xmm0, qword [0x565ec8]
mov dword [ebp - 0x448], 0x56352c
movsd qword [ebp - 0x424], xmm0
mov dword [ebp - 0x418], 0x138c
test ecx, ecx
jne 0x40c966
call fcn.004d8607
mov dword [ebp - 0x448], 0x562a6c
xorps xmm0, xmm0
movsd qword [ebp - 0x424], xmm0
mov dword [ebp - 0x418], 0x138a
test ecx, ecx
jne 0x40c64b
call fcn.004d8607
mov eax, dword [ecx]
lea edx, [ebp - 0x448]
push edx
lea edx, [ebp - 0x424]
push edx
lea edx, [ebp - 0x418]
push edx
call dword [eax + 8]
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x78]
test edi, edi
je 0x40c688
mov ecx, edi
call fcn.00422a10
push 0x840
push edi
call fcn.004edc4d
add esp, 8
push 0x840
call fcn.004edc7e
mov edi, eax
add esp, 4
mov dword [ebp - 0x44c], edi
push 0x840
push 0
push edi
mov byte [ebp - 4], 1
call fcn.004d7060
lea ebx, [esi + 0x28]
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x40c6bc
mov ebx, dword [ebx]
sub esp, 8
lea ecx, [edi + 0x800]
call fcn.0042a5b0
sub esp, 8
mov byte [ebp - 4], 2
lea ecx, [edi + 0x810]
call fcn.0042a5b0
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [edi + 0x820]
call fcn.0042a5b0
sub esp, 8
mov byte [ebp - 4], 4
mov ecx, edi
push ebx
call fcn.00422a90
lea eax, [ebp - 0x418]
mov dword [esi + 0x78], edi
mov dword [ebp - 4], 0xffffffff
mov ebx, 1
push eax
push dword [edi + 0x830]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call edi
cmp dword [ebp - 0x418], 0x103
jne 0x40c8a1
push 0x400
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004d7060
mov eax, dword [esi + 0x78]
lea ecx, [ebp - 0x448]
add esp, 0xc
mov dword [ebp - 0x448], 0xffffffff
push 0
push ecx
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push dword [eax + 0x814]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x448]
test eax, eax
mov eax, 0xffffffff
cmovne ecx, eax
test ecx, ecx
je 0x40c87f
cmp byte [ebp - 0x414], 0
mov dword [ebp - 0x450], 0xf
mov dword [ebp - 0x454], 0
mov byte [ebp - 0x464], 0
jne 0x40c7b5
xor ecx, ecx
jmp 0x40c7c9
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c7c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x464]
call fcn.004049f0
mov dword [ebp - 4], 6
lea edx, [ebp - 0x464]
push dword [esi + 0x70]
lea ecx, [ebp - 0x43c]
call fcn.00421210
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x450]
cmp eax, 0x10
jb 0x40c81c
inc eax
lea ecx, [ebp - 0x464]
push eax
push dword [ebp - 0x464]
call fcn.00404c20
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
mov ecx, esi
mov dword [ebp - 0x450], 0xf
cmovae eax, dword [ebp - 0x43c]
push eax
mov dword [ebp - 0x454], 0
mov byte [ebp - 0x464], 0
call fcn.0040c9a0
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x428]
cmovne ebx, ecx
cmp eax, 8
jb 0x40c87f
inc eax
lea ecx, [ebp - 0x43c]
push eax
push dword [ebp - 0x43c]
call fcn.004017c0
lea eax, [ebp - 0x418]
push eax
mov eax, dword [esi + 0x78]
push dword [eax + 0x830]
call edi
cmp dword [ebp - 0x418], 0x103
je 0x40c731
mov eax, dword [esi + 0x78]
push 0xffffffffffffffff
push dword [eax + 0x830]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x78]
mov dword [esi + 0x78], 0
test edi, edi
je 0x40c8d5
mov ecx, edi
call fcn.00422a10
push 0x840
push edi
call fcn.004edc4d
add esp, 8
test ebx, ebx
je 0x40c980
movsd xmm0, qword [0x565ec8]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x44c], 0x562a6c
movsd qword [ebp - 0x444], xmm0
mov dword [ebp - 0x41c], 0x138b
test ecx, ecx
jne 0x40c90d
call fcn.004d8607
lea edx, [ebp - 0x44c]
push edx
lea edx, [ebp - 0x444]
push edx
lea edx, [ebp - 0x41c]
jmp 0x40c97a
lea edx, [ebp - 0x448]
push edx
lea edx, [ebp - 0x424]
push edx
lea edx, [ebp - 0x418]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004edc3c
mov esp, ebp
pop ebp
ret