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

Disassembly:
push 0x73c
mov eax, 0x4ea007
call fcn.004b9df1
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.004691ec
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0046d8a0
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00473806
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.0046ab82
push eax
lea ecx, [ebp - 0x94]
call fcn.00473806
mov byte [ebp - 4], 2
call fcn.0046ab8e
mov ecx, eax
call fcn.004740f3
test al, al
je 0x4838ed
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00473ae9
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.00473aad
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x483897
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0047392d
jmp 0x483a84
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x483883
push ebx
mov dword [ebp - 0x744], edi
call fcn.004b90e1
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 0x483a6d
push esi
call fcn.004b8e5b
pop ecx
mov esi, edi
jmp 0x483883
call fcn.0046ab8e
push eax
lea ecx, [ebp - 0x94]
call fcn.00473ae9
call fcn.0046adf7
test al, al
je 0x483914
call fcn.0046ab94
mov dword [ebp - 0x73c], eax
jmp 0x483983
call fcn.0046ab9a
push eax
lea ecx, [ebp - 0x220]
call fcn.00473806
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00473aad
push eax
call fcn.0046fd4e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.00473aad
push eax
call fcn.00477983
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x48396e
push eax
call fcn.004b8e5b
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0047392d
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x483883
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.00473806
push 0x50fc28
push 0x50fad0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004742b1
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00473aad
push eax
push dword [ebp - 0x73c]
call fcn.00477351
add esp, 0x14
test eax, eax
je 0x4839fa
lea ecx, [ebp - 0x118]
call fcn.0047392d
jmp 0x483883
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x4839ea
push ebx
call fcn.004b90e1
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00477dd5
add esp, 0x14
test eax, eax
je 0x483a4d
cmp eax, 0x600
je 0x483a4d
push esi
call fcn.004b8e5b
pop ecx
mov esi, edi
call fcn.0046adf7
test al, al
jne 0x4839ea
push dword [ebp - 0x73c]
call fcn.00477136
pop ecx
jmp 0x4839ea
call fcn.0046adf7
test al, al
jne 0x483a62
push dword [ebp - 0x73c]
call fcn.00477136
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0047392d
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0047392d
test esi, esi
jne 0x483b05
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.00473aad
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x483b01
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x483b01
push ebx
mov dword [ebp - 0x740], edi
call fcn.004b90e1
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 0x483b01
push esi
call fcn.004b8e5b
pop ecx
jmp 0x483b17
test esi, esi
je 0x483b17
push ebx
push esi
call fcn.00483768
push esi
mov edi, eax
call fcn.004b8e5b
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0047392d
lea ecx, [ebp - 0x508]
call fcn.00469678
mov eax, edi
call fcn.004b9daf
ret