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

Disassembly:
push 0x73c
mov eax, 0x4e4c6b
call fcn.004b7082
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.004671bd
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0046b79f
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00465e67
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.00468a7f
push eax
lea ecx, [ebp - 0x94]
call fcn.00465e67
mov byte [ebp - 4], 2
call fcn.00468a85
mov ecx, eax
call fcn.0046673a
test al, al
je 0x480b07
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0046612d
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.004660f3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x480ab1
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00465f73
jmp 0x480c9e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x480a9d
push ebx
mov dword [ebp - 0x744], edi
call fcn.004b612e
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 0x480c87
push esi
call fcn.004b6137
pop ecx
mov esi, edi
jmp 0x480a9d
call fcn.00468a85
push eax
lea ecx, [ebp - 0x94]
call fcn.0046612d
call fcn.00468cee
test al, al
je 0x480b2e
call fcn.00468a8b
mov dword [ebp - 0x73c], eax
jmp 0x480b9d
call fcn.00468a91
push eax
lea ecx, [ebp - 0x220]
call fcn.00465e67
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.004660f3
push eax
call fcn.0046db1e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.004660f3
push eax
call fcn.00472000
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x480b88
push eax
call fcn.004b6137
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00465f73
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x480a9d
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.00465e67
push 0x4f7908
push 0x4f790c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.004668f8
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.004660f3
push eax
push dword [ebp - 0x73c]
call fcn.004719ce
add esp, 0x14
test eax, eax
je 0x480c14
lea ecx, [ebp - 0x118]
call fcn.00465f73
jmp 0x480a9d
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x480c04
push ebx
call fcn.004b612e
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00472452
add esp, 0x14
test eax, eax
je 0x480c67
cmp eax, 0x600
je 0x480c67
push esi
call fcn.004b6137
pop ecx
mov esi, edi
call fcn.00468cee
test al, al
jne 0x480c04
push dword [ebp - 0x73c]
call fcn.004717b3
pop ecx
jmp 0x480c04
call fcn.00468cee
test al, al
jne 0x480c7c
push dword [ebp - 0x73c]
call fcn.004717b3
pop ecx
lea ecx, [ebp - 0x118]
call fcn.00465f73
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00465f73
test esi, esi
jne 0x480d1f
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.004660f3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x480d1b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x480d1b
push ebx
mov dword [ebp - 0x740], edi
call fcn.004b612e
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 0x480d1b
push esi
call fcn.004b6137
pop ecx
jmp 0x480d31
test esi, esi
je 0x480d31
push ebx
push esi
call fcn.00480982
push esi
mov edi, eax
call fcn.004b6137
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.00465f73
lea ecx, [ebp - 0x508]
call fcn.00467649
mov eax, edi
call fcn.004b7040
ret