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

Disassembly:
push 0xffffffffffffffff
push 0x4bb382
mov eax, dword fs:[0]
push eax
mov eax, 0x2024
call fcn.00490820
mov eax, dword [0x4de57c]
xor eax, esp
mov dword [esp + 0x2020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4de57c]
xor eax, esp
push eax
lea eax, [esp + 0x2038]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2048]
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [eax + 0x18], 0xf
mov dword [eax + 0x14], edi
mov esi, ecx
mov dword [esp + 0x18], eax
mov byte [eax + 4], 0
cmp dword [esi + 4], edi
mov dword [esp + 0x2040], edi
mov dword [esp + 0x28], 1
mov byte [esp + 0x16], 0
jne 0x46a506
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0046dc30
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 1
lea edx, [esp + 0x24]
push edx
xor ecx, ecx
xor eax, eax
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call ebp
cmp eax, edi
jne 0x46a528
call fcn.0046dc30
mov edx, dword [esi + 4]
test edx, edx
je 0x46a672
push 1
lea edi, [esp + 0x30]
push edi
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edx
call ebp
test eax, eax
jne 0x46a54c
call fcn.0046dc30
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp edi, dword [esp + 0x20]
jne 0x46a573
cmp ebx, dword [esp + 0x24]
je 0x46a67a
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push 1
lea ecx, [esp + 0x23]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x17]
cmp al, 0xd
je 0x46a528
cmp al, 0xa
je 0x46a528
cmp dword [esi + 4], 0
jne 0x46a5aa
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0046dc30
push 1
lea edx, [esp + 0x24]
push edx
or ecx, 0xffffffff
or eax, 0xffffffff
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call ebp
test eax, eax
jne 0x46a5c8
call fcn.0046dc30
mov eax, dword [esi + 4]
xor edi, edi
push edi
lea ecx, [esp + 0x20]
push ecx
push 1
lea edx, [esp + 0x22]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esi + 4], edi
jne 0x46a5f3
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0046dc30
push 1
lea edx, [esp + 0x24]
push edx
or ecx, 0xffffffff
or eax, 0xffffffff
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call ebp
test eax, eax
jne 0x46a611
call fcn.0046dc30
mov al, byte [esp + 0x16]
cmp al, 0xd
je 0x46a659
lea esp, [esp]
cmp al, 0xa
je 0x46a659
mov ecx, esi
call fcn.00469f40
test eax, eax
jne 0x46a659
cmp edi, 0x1fff
jae 0x46a659
lea ecx, [esp + 0x1c]
push ecx
push 1
lea edx, [esp + 0x1e]
push edx
mov ecx, esi
call fcn.00469e20
mov al, byte [esp + 0x16]
mov byte [esp + edi + 0x34], al
add edi, 1
cmp al, 0xd
jne 0x46a620
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
mov ecx, esi
mov byte [esp + edi + 0x38], 0
call fcn.0040f4c0
mov eax, esi
jmp 0x46a67e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2020]
xor ecx, esp
call fcn.0048de34
add esp, 0x2030
ret 4