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

Disassembly:
push 0x73c
mov eax, 0x4c3a83
call fcn.0049bea2
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.0044befd
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.004504df
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0044aba7
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.0044d7bf
push eax
lea ecx, [ebp - 0x94]
call fcn.0044aba7
mov byte [ebp - 4], 2
call fcn.0044d7c5
mov ecx, eax
call fcn.0044b47a
test al, al
je 0x464a3d
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ae6d
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.0044ae33
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x4649e7
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0044acb3
jmp 0x464bd4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x4649d3
push ebx
mov dword [ebp - 0x744], edi
call fcn.0049af9e
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 0x464bbd
push esi
call fcn.0049afa7
pop ecx
mov esi, edi
jmp 0x4649d3
call fcn.0044d7c5
push eax
lea ecx, [ebp - 0x94]
call fcn.0044ae6d
call fcn.0044da2e
test al, al
je 0x464a64
call fcn.0044d7cb
mov dword [ebp - 0x73c], eax
jmp 0x464ad3
call fcn.0044d7d1
push eax
lea ecx, [ebp - 0x220]
call fcn.0044aba7
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.0044ae33
push eax
call fcn.0045285e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.0044ae33
push eax
call fcn.00455f36
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x464abe
push eax
call fcn.0049afa7
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.0044acb3
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x4649d3
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.0044aba7
push 0x4d4be0
push 0x4d4be4
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.0044b638
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.0044ae33
push eax
push dword [ebp - 0x73c]
call fcn.00455904
add esp, 0x14
test eax, eax
je 0x464b4a
lea ecx, [ebp - 0x118]
call fcn.0044acb3
jmp 0x4649d3
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x464b3a
push ebx
call fcn.0049af9e
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.00456388
add esp, 0x14
test eax, eax
je 0x464b9d
cmp eax, 0x600
je 0x464b9d
push esi
call fcn.0049afa7
pop ecx
mov esi, edi
call fcn.0044da2e
test al, al
jne 0x464b3a
push dword [ebp - 0x73c]
call fcn.004556e9
pop ecx
jmp 0x464b3a
call fcn.0044da2e
test al, al
jne 0x464bb2
push dword [ebp - 0x73c]
call fcn.004556e9
pop ecx
lea ecx, [ebp - 0x118]
call fcn.0044acb3
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.0044acb3
test esi, esi
jne 0x464c55
push edi
push 0x80
push 3
push edi
push 1
push connect
lea ecx, [ebp - 0x19c]
call fcn.0044ae33
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x464c51
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x464c51
push ebx
mov dword [ebp - 0x740], edi
call fcn.0049af9e
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 0x464c51
push esi
call fcn.0049afa7
pop ecx
jmp 0x464c67
test esi, esi
je 0x464c67
push ebx
push esi
call fcn.004648b8
push esi
mov edi, eax
call fcn.0049afa7
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.0044acb3
lea ecx, [ebp - 0x508]
call fcn.0044c389
mov eax, edi
call fcn.0049be60
ret