Function at 0x4130f3
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x43f434]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x50], 0
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ebx
add ebx, 0x537a
push edi
mov dword [ebp - 0x5c], eax
mov edi, 0x500000
je 0x41317b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41317b
push 0
push 0x80
push 4
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41317b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0
je 0x41317b
cmp dword [ebp - 0x54], edi
jae 0x41317b
mov dword [ebp - 0x50], 1
xor ebx, ebx
cmp dword [ebp - 0x50], ebx
je 0x413333
push 4
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x413333
push str._____________________________7d9114302a0cb6___r_n
call fcn.00416df0
push edi
push 0
push ebx
mov dword [ebp - 0x50], eax
call fcn.00414ce0
mov eax, edi
sub eax, dword [ebp - 0x50]
add esp, 0x10
mov dword [ebp - 0x48], eax
test esi, esi
je 0x4131d3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4131d7
xor eax, eax
jmp 0x4131ef
add eax, eax
mov dword [ebp - 0x54], eax
call fcn.00417bc0
mov eax, esp
push 3
push dword [ebp - 0x54]
push esi
push eax
call fcn.004027fe
mov ecx, dword [ebp - 0x4c]
push 0
push eax
push 0x4382f4
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.004120a5
mov eax, dword [ebp - 0x48]
lea esi, [eax + ebx]
mov eax, ebx
sub eax, esi
sub eax, dword [ebp - 0x50]
add eax, edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
add eax, 0x66b4
je 0x41322f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x413233
xor eax, eax
jmp 0x413253
add eax, eax
mov dword [ebp - 0x54], eax
call fcn.00417bc0
mov eax, dword [ebp - 0x4c]
mov ecx, esp
push 3
push dword [ebp - 0x54]
add eax, 0x66b4
push eax
push ecx
call fcn.004027fe
mov ecx, dword [ebp - 0x4c]
push 0
push eax
push 0x4384bc
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004120a5
add esi, dword [ebp - 0x48]
mov eax, ebx
sub eax, esi
sub eax, dword [ebp - 0x50]
add eax, edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
add eax, 0x537a
je 0x413290
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x413294
xor eax, eax
jmp 0x4132b4
add eax, eax
mov dword [ebp - 0x54], eax
call fcn.00417bc0
mov eax, dword [ebp - 0x4c]
mov ecx, esp
push 3
push dword [ebp - 0x54]
add eax, 0x537a
push eax
push ecx
call fcn.004027fe
mov ecx, dword [ebp - 0x4c]
push 1
push eax
push str.file
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004120a5
add esi, dword [ebp - 0x48]
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov byte [ebp - 0x44], 0
call fcn.00414ce0
mov ecx, dword [ebp - 0x4c]
add esp, 0xc
push dword [ebp - 0x5c]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.00412f81
mov ecx, dword [ebp - 0x4c]
mov eax, ebx
sub eax, esi
sub eax, dword [ebp - 0x50]
push 0
add eax, edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
push str.cverify
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.004120a5
push dword [ebp - 0x50]
add esi, dword [ebp - 0x48]
push str._____________________________7d9114302a0cb6___r_n
push esi
call fcn.00414df0
mov eax, dword [ebp - 0x58]
sub esi, ebx
add esp, 0xc
add esi, dword [ebp - 0x50]
mov dword [eax], esi
mov eax, ebx
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414cce
leave
ret 0xc