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

Disassembly:
push 0x73c
mov eax, 0x4f6bd0
call fcn.004c73c2
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00477715
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0047bcf7
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0047606f
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00478fd7
push eax
lea ecx, [ebp - 0x94]
call fcn.0047606f
mov byte [ebp - 4], 2
call fcn.00478fdd
mov ecx, eax
call fcn.00476942
test al, al
je 0x490e3f
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00476335
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004762fb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x490de9
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0047617b
jmp 0x490fd6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x490dd5
push ebx
mov dword [ebp - 0x744], edi
call fcn.004c6466
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x744]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], ebx
je 0x490fbf
push esi
call fcn.004c646f
pop ecx
mov esi, edi
jmp 0x490dd5
call fcn.00478fdd
push eax
lea ecx, [ebp - 0x94]
call fcn.00476335
call fcn.00479246
test al, al
je 0x490e66
call fcn.00478fe3
mov dword [ebp - 0x73c], eax
jmp 0x490ed5
call fcn.00478fe9
push eax
lea ecx, [ebp - 0x220]
call fcn.0047606f
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.004762fb
push eax
call fcn.0047e076
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.004762fb
push eax
call fcn.00484de1
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x490ec0
push eax
call fcn.004c646f
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0047617b
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x490dd5
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0047606f
push 0x50a678
push 0x50a67c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00476b00
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004762fb
push eax
push dword [ebp - 0x73c]
call fcn.004847af
add esp, 0x14
test eax, eax
je 0x490f4c
lea ecx, [ebp - 0x118]
call fcn.0047617b
jmp 0x490dd5
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x490f3c
push ebx
call fcn.004c6466
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00485233
add esp, 0x14
test eax, eax
je 0x490f9f
cmp eax, 0x600
je 0x490f9f
push esi
call fcn.004c646f
pop ecx
mov esi, edi
call fcn.00479246
test al, al
jne 0x490f3c
push dword [ebp - 0x73c]
call fcn.00484594
pop ecx
jmp 0x490f3c
call fcn.00479246
test al, al
jne 0x490fb4
push dword [ebp - 0x73c]
call fcn.00484594
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0047617b
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0047617b
test esi, esi
jne 0x491057
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.004762fb
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x491053
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x491053
push ebx
mov dword [ebp - 0x740], edi
call fcn.004c6466
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x740]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], ebx
je 0x491053
push esi
call fcn.004c646f
pop ecx
jmp 0x491069
test esi, esi
je 0x491069
push ebx
push esi
call fcn.00490cba
push esi
mov edi, eax
call fcn.004c646f
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0047617b
lea ecx, [ebp - 0x508]
call fcn.00477ba1
mov eax, edi
call fcn.004c7380
ret