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

Disassembly:
push 0x73c
mov eax, 0x4e0a4a
call fcn.004b1951
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.00460c3c
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.004652f0
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0046b17b
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.004625d2
push eax
lea ecx, [ebp - 0x94]
call fcn.0046b17b
mov byte [ebp - 4], 2
call fcn.004625de
mov ecx, eax
call fcn.0046ba68
test al, al
je 0x47b3b4
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0046b45e
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x94]
call fcn.0046b422
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x47b35e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0046b2a2
jmp 0x47b54b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47b34a
push ebx
mov dword [ebp - 0x744], edi
call fcn.004b0c4c
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 0x47b534
push esi
call fcn.004b09c6
pop ecx
mov esi, edi
jmp 0x47b34a
call fcn.004625de
push eax
lea ecx, [ebp - 0x94]
call fcn.0046b45e
call fcn.00462847
test al, al
je 0x47b3db
call fcn.004625e4
mov dword [ebp - 0x73c], eax
jmp 0x47b44a
call fcn.004625ea
push eax
lea ecx, [ebp - 0x220]
call fcn.0046b17b
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0046b422
push eax
call fcn.004676c3
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.0046b422
push eax
call fcn.0046f2f8
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x47b435
push eax
call fcn.004b09c6
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0046b2a2
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x47b34a
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0046b17b
push 0x4edad4
push 0x4edad8
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0046bc26
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0046b422
push eax
push dword [ebp - 0x73c]
call fcn.0046ecc6
add esp, 0x14
test eax, eax
je 0x47b4c1
lea ecx, [ebp - 0x118]
call fcn.0046b2a2
jmp 0x47b34a
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x47b4b1
push ebx
call fcn.004b0c4c
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.0046f74a
add esp, 0x14
test eax, eax
je 0x47b514
cmp eax, 0x600
je 0x47b514
push esi
call fcn.004b09c6
pop ecx
mov esi, edi
call fcn.00462847
test al, al
jne 0x47b4b1
push dword [ebp - 0x73c]
call fcn.0046eaab
pop ecx
jmp 0x47b4b1
call fcn.00462847
test al, al
jne 0x47b529
push dword [ebp - 0x73c]
call fcn.0046eaab
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0046b2a2
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0046b2a2
test esi, esi
jne 0x47b5cc
push edi
push 0x80
push 3
push edi
push 1
push accept
lea ecx, [ebp - 0x19c]
call fcn.0046b422
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x47b5c8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x47b5c8
push ebx
mov dword [ebp - 0x740], edi
call fcn.004b0c4c
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 0x47b5c8
push esi
call fcn.004b09c6
pop ecx
jmp 0x47b5de
test esi, esi
je 0x47b5de
push ebx
push esi
call fcn.0047b22f
push esi
mov edi, eax
call fcn.004b09c6
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0046b2a2
lea ecx, [ebp - 0x508]
call fcn.004610c8
mov eax, edi
call fcn.004b190f
ret