Function at 0x403270
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b6d90
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e1370]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
lea esi, [esp + 0x1c]
call fcn.0047b7cd
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4034c0
mov ecx, dword [esp + 0x1c]
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x38], edi
cmp edi, 0xffffffff
je 0x4034c0
lea edx, [esp + 0x3c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40348a
mov eax, dword [esp + 0x3c]
cmp eax, 0x2800000
jae 0x40348a
inc eax
push 0x4e74e0
push eax
call fcn.00490c93
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x40348a
mov eax, dword [esp + 0x3c]
inc eax
push eax
push ebx
push ebp
call fcn.00494b20
mov edx, dword [esp + 0x48]
add esp, 0xc
push ebx
lea ecx, [esp + 0x28]
push ecx
push edx
push ebp
push edi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403481
and dword [esp + 0x4c], 0xfffffe00
mov dword [esp + 0x50], ebx
lea edx, [esp + 0x44]
mov ecx, ebp
mov byte [esp + 0x64], 2
call fcn.0047b9f9
test eax, eax
je 0x403474
lea eax, [esp + 0x44]
call fcn.00474860
test al, al
je 0x403474
lea ecx, [esp + 0x44]
xor esi, esi
call fcn.00474050
test eax, eax
jbe 0x403474
lea ecx, [esp + 0x18]
call fcn.004054e0
push esi
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x6c], 3
call fcn.004740d0
push 0x4c477c
push eax
call fcn.00474410
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.0047bdef
test eax, eax
je 0x403455
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], ebx
je 0x403455
lea ecx, [esp + 0x20]
call fcn.004054e0
push esi
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x6c], 4
call fcn.004740d0
push 0x4c4780
push eax
call fcn.00474410
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.0047bdef
test eax, eax
je 0x40344c
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], ebx
je 0x40344c
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0x4c4788
mov dword [esp + 0x34], eax
call fcn.00490c5c
add esp, 4
push ebx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00402d60
lea ecx, [esp + 0x20]
call fcn.00406090
lea ecx, [esp + 0x18]
call fcn.00406090
lea ecx, [esp + 0x44]
inc esi
call fcn.00474050
cmp esi, eax
jb 0x403396
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x44]
mov byte [esp + 0x64], bl
call fcn.004739d0
push ebp
call fcn.00490210
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4034b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4034ea
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 4