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

Disassembly:
push 0x72c
mov eax, 0x5184f3
call fcn.004d1ec0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4f8]
call fcn.00484acd
xor edi, edi
lea ecx, [ebp - 0x4f8]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.004892f8
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00481662
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00486405
push eax
lea ecx, [ebp - 0x94]
call fcn.00481662
mov byte [ebp - 4], 2
call fcn.0048640b
mov ecx, eax
call fcn.00481e84
test al, al
je 0x49329b
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004818d7
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_1
lea ecx, [ebp - 0x94]
call fcn.00481893
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x72c], eax
cmp eax, 0xffffffff
jne 0x493245
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00481789
jmp 0x493432
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x493231
push ebx
mov dword [ebp - 0x734], edi
call fcn.004d1b3b
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x734]
push eax
push ebx
push esi
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x734], ebx
je 0x49341b
push esi
call fcn.004d1b44
pop ecx
mov esi, edi
jmp 0x493231
call fcn.0048640b
push eax
lea ecx, [ebp - 0x94]
call fcn.004818d7
call fcn.00486672
test al, al
je 0x4932c2
call fcn.00486411
mov dword [ebp - 0x72c], eax
jmp 0x493331
call fcn.00486417
push eax
lea ecx, [ebp - 0x220]
call fcn.00481662
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00481893
push eax
call fcn.0048b510
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x730], eax
call fcn.00481893
push eax
call fcn.004a6052
mov dword [ebp - 0x72c], eax
mov eax, dword [ebp - 0x730]
pop ecx
pop ecx
test eax, eax
je 0x49331c
push eax
call fcn.004d1b44
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00481789
mov eax, dword [ebp - 0x72c]
test eax, eax
je 0x493231
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x738], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.00481662
push 0x543b34
push 0x52e020
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00482051
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x738]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00481893
push eax
push dword [ebp - 0x72c]
call fcn.004a5a29
add esp, 0x14
test eax, eax
je 0x4933a8
lea ecx, [ebp - 0x118]
call fcn.00481789
jmp 0x493231
mov ebx, dword [ebp - 0x4fc]
test ebx, ebx
je 0x493398
push ebx
call fcn.004d1b3b
push ebx
mov esi, eax
push esi
push dword [ebp - 0x738]
push dword [ebp - 0x72c]
call fcn.004a648c
add esp, 0x14
test eax, eax
je 0x4933fb
cmp eax, 0x600
je 0x4933fb
push esi
call fcn.004d1b44
pop ecx
mov esi, edi
call fcn.00486672
test al, al
jne 0x493398
push dword [ebp - 0x72c]
call fcn.004a5808
pop ecx
jmp 0x493398
call fcn.00486672
test al, al
jne 0x493410
push dword [ebp - 0x72c]
call fcn.004a5808
pop ecx
lea ecx, [ebp - 0x118]
call fcn.00481789
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00481789
test esi, esi
jne 0x4934b3
push edi
push 0x80
push 3
push edi
push 1
push Ordinal_1
lea ecx, [ebp - 0x19c]
call fcn.00481893
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x72c], eax
cmp eax, 0xffffffff
je 0x4934af
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4934af
push ebx
mov dword [ebp - 0x730], edi
call fcn.004d1b3b
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x730]
push eax
push ebx
push esi
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x72c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x730], ebx
je 0x4934af
push esi
call fcn.004d1b44
pop ecx
mov esi, edi
test esi, esi
je 0x4934c5
push ebx
push esi
call fcn.00493114
push esi
mov edi, eax
call fcn.004d1b44
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00481789
lea ecx, [ebp - 0x4f8]
call fcn.0040e520
mov eax, edi
call fcn.004d1e7b
ret