Function at 0x499392
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x4e7efd
call fcn.004b9cae
mov dword [ebp - 0x2d8], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2d4], esi
call fcn.00468e15
push eax
lea ecx, [ebp - 0x94]
call fcn.0046e80e
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00468e1b
mov ecx, eax
call fcn.0046ef11
or ebx, 0xffffffff
test al, al
je 0x49947f
push esi
lea ecx, [ebp - 0x94]
call fcn.0046ea13
push edi
push 0x80
push 3
push edi
push 1
push bind
lea ecx, [ebp - 0x94]
call fcn.0046e9f3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x2c8], edi
cmp edi, ebx
jne 0x49941f
mov dword [ebp - 4], ebx
jmp 0x499534
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x499437
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x499417
and dword [ebp - 0x2cc], 0
push esi
call fcn.004b9c4f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2cc]
push eax
push esi
push edi
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2cc], esi
je 0x499598
push edi
call fcn.004b90ba
pop ecx
jmp 0x499417
call fcn.00468e1b
push eax
lea ecx, [ebp - 0x94]
call fcn.0046e9f6
call fcn.00468fbc
test al, al
je 0x4994a0
call fcn.00468e21
jmp 0x4994b7
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0046e9f3
push eax
call fcn.0047c27e
add esp, 0xc
mov dword [ebp - 0x2c8], eax
test eax, eax
je 0x499530
lea ecx, [ebp - 0x2c4]
push ecx
lea ecx, [ebp - 0x2d0]
push ecx
push 1
push esi
push eax
call fcn.0047bcbc
add esp, 0x14
test eax, eax
jne 0x499530
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x499530
push esi
call fcn.004b9c4f
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d0]
push dword [ebp - 0x2c8]
call fcn.0047c655
add esp, 0x18
test eax, eax
je 0x499583
cmp eax, 0x600
je 0x499583
push edi
call fcn.004b90ba
pop ecx
call fcn.00468fbc
test al, al
jne 0x499530
push dword [ebp - 0x2c8]
call fcn.0047bb18
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0046e8f3
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push bind
push dword [ebp - 0x2d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x499579
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x4995ac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004b9c6c
ret 4
call fcn.00468fbc
test al, al
jne 0x499598
push dword [ebp - 0x2c8]
call fcn.0047bb18
pop ecx
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], ebx
call fcn.0046e8f3
test edi, edi
jne 0x4995e9
jmp 0x49953f
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004b9c4f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x4995e5
push edi
call fcn.004b90ba
pop ecx
jmp 0x499579
test edi, edi
je 0x499579
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.00499606
push edi
mov esi, eax
call fcn.004b90ba
pop ecx
mov eax, esi
jmp 0x49957b