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

Disassembly:
push 0x3d0
mov eax, 0x4e7dd0
call fcn.004bb727
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3d4], eax
mov esi, ebx
mov edi, ebx
call fcn.004579e5
push eax
lea ecx, [ebp - 0x94]
call fcn.00454b8a
mov dword [ebp - 4], ebx
call fcn.004579f1
mov ecx, eax
call fcn.004553a4
test al, al
je 0x46c4cc
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x94]
call fcn.00454e17
push ebx
push 0x80
push 3
push ebx
push 1
push connect
lea ecx, [ebp - 0x94]
call fcn.00454dbf
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d0], eax
cmp eax, 0xffffffff
jne 0x46c476
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00454cb1
jmp 0x46c65d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x46c462
push edi
mov dword [ebp - 0x3d8], ebx
call fcn.004ba5bf
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d8]
push eax
push edi
push esi
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d8], edi
je 0x46c64a
push esi
call fcn.004ba5c8
pop ecx
mov esi, ebx
jmp 0x46c462
call fcn.004579f1
push eax
lea ecx, [ebp - 0x94]
call fcn.00454dfa
call fcn.00457d0e
test al, al
je 0x46c4f3
call fcn.004579f7
mov dword [ebp - 0x3d0], eax
jmp 0x46c55f
call fcn.004579fd
push eax
lea ecx, [ebp - 0x19c]
call fcn.00454b8a
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00454dbf
push eax
call fcn.0045c146
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x3d8], eax
call fcn.00454dbf
push eax
call fcn.0045e8fa
mov dword [ebp - 0x3d0], eax
mov eax, dword [ebp - 0x3d8]
pop ecx
pop ecx
test eax, eax
je 0x46c54b
push eax
call fcn.004ba5c8
pop ecx
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.00454cb1
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x46c462
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], ebx
call fcn.00454baf
push 0x4f5790
push 0x51040c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00455560
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00454dbf
push eax
push dword [ebp - 0x3d0]
call fcn.0045e2c8
add esp, 0x14
test eax, eax
je 0x46c5d7
lea ecx, [ebp - 0x118]
call fcn.00454cb1
jmp 0x46c462
mov edi, dword [ebp - 0x1a0]
test edi, edi
je 0x46c5c7
push edi
call fcn.004ba5bf
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push dword [ebp - 0x3d0]
call fcn.0045ed39
add esp, 0x14
test eax, eax
je 0x46c62a
cmp eax, 0x600
je 0x46c62a
push esi
call fcn.004ba5c8
pop ecx
mov esi, ebx
call fcn.00457d0e
test al, al
jne 0x46c5c7
push dword [ebp - 0x3d0]
call fcn.0045e0ab
pop ecx
jmp 0x46c5c7
call fcn.00457d0e
test al, al
jne 0x46c63f
push dword [ebp - 0x3d0]
call fcn.0045e0ab
pop ecx
lea ecx, [ebp - 0x118]
call fcn.00454cb1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00454cb1
test esi, esi
jne 0x46c6d8
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3d4], eax
cmp eax, 0xffffffff
je 0x46c6d4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x46c6d4
push edi
mov dword [ebp - 0x3d0], ebx
call fcn.004ba5bf
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 0x3d0]
push eax
push edi
push esi
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x46c6d4
push esi
call fcn.004ba5c8
pop ecx
mov esi, ebx
test esi, esi
je 0x46c6ec
push edi
push esi
call fcn.0046c375
push 1
push esi
mov ebx, eax
call fcn.004ba5b1
add esp, 0x10
mov eax, ebx
call fcn.004bb6d1
ret