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

Disassembly:
push 0x73c
mov eax, 0x51e2f7
call fcn.004ecf31
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0049c009
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.004a071d
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004a66ac
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.0049d99f
push eax
lea ecx, [ebp - 0x94]
call fcn.004a66ac
mov byte [ebp - 4], 2
call fcn.0049d9ab
mov ecx, eax
call fcn.004a6f9a
test al, al
je 0x4b6899
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004a698d
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004a6953
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x4b6843
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004a67d3
jmp 0x4b6a30
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4b682f
push ebx
mov dword [ebp - 0x744], edi
call fcn.004ec357
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 0x4b6a19
push esi
call fcn.004ec0d1
pop ecx
mov esi, edi
jmp 0x4b682f
call fcn.0049d9ab
push eax
lea ecx, [ebp - 0x94]
call fcn.004a698d
call fcn.0049dc14
test al, al
je 0x4b68c0
call fcn.0049d9b1
mov dword [ebp - 0x73c], eax
jmp 0x4b692f
call fcn.0049d9b7
push eax
lea ecx, [ebp - 0x220]
call fcn.004a66ac
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.004a6953
push eax
call fcn.004a2bdd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.004a6953
push eax
call fcn.004aa83b
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x4b691a
push eax
call fcn.004ec0d1
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.004a67d3
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x4b682f
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.004a66ac
push 0x52bc0c
push 0x52bc10
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004a7158
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004a6953
push eax
push dword [ebp - 0x73c]
call fcn.004aa209
add esp, 0x14
test eax, eax
je 0x4b69a6
lea ecx, [ebp - 0x118]
call fcn.004a67d3
jmp 0x4b682f
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x4b6996
push ebx
call fcn.004ec357
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.004aac8d
add esp, 0x14
test eax, eax
je 0x4b69f9
cmp eax, 0x600
je 0x4b69f9
push esi
call fcn.004ec0d1
pop ecx
mov esi, edi
call fcn.0049dc14
test al, al
jne 0x4b6996
push dword [ebp - 0x73c]
call fcn.004a9fee
pop ecx
jmp 0x4b6996
call fcn.0049dc14
test al, al
jne 0x4b6a0e
push dword [ebp - 0x73c]
call fcn.004a9fee
pop ecx
lea ecx, [ebp - 0x118]
call fcn.004a67d3
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.004a67d3
test esi, esi
jne 0x4b6ab1
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.004a6953
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x4b6aad
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4b6aad
push ebx
mov dword [ebp - 0x740], edi
call fcn.004ec357
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 0x4b6aad
push esi
call fcn.004ec0d1
pop ecx
jmp 0x4b6ac3
test esi, esi
je 0x4b6ac3
push ebx
push esi
call fcn.004b6714
push esi
mov edi, eax
call fcn.004ec0d1
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.004a67d3
lea ecx, [ebp - 0x508]
call fcn.0049c495
mov eax, edi
call fcn.004eceef
ret