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

Disassembly:
push 0x72c
mov eax, 0x4a5699
call fcn.00441168
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4f8]
call fcn.00457749
xor ebx, ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x4f8]
mov dword [ebp - 4], ebx
call fcn.004577ae
lea eax, [ebp - 0x3f0]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00453ff7
mov byte [ebp - 4], 1
mov dword [ebp - 0x72c], ebx
xor esi, esi
call fcn.0045587e
push eax
lea ecx, [ebp - 0x94]
call fcn.00453ff7
mov byte [ebp - 4], 2
call fcn.00455884
mov ecx, eax
call fcn.00453ce3
test al, al
je 0x46e0b7
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00453d5f
push ebx
push 0x80
push 3
push ebx
push 1
push bind
lea ecx, [ebp - 0x94]
call fcn.00453bcf
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46e05e
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00453bb5
jmp 0x46e241
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x46e04a
push esi
mov dword [ebp - 0x734], ebx
call fcn.0043b876
pop ecx
push ebx
lea ecx, [ebp - 0x734]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x72c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x734], esi
je 0x46e22a
push dword [ebp - 0x72c]
call fcn.0043d0ae
pop ecx
mov dword [ebp - 0x72c], ebx
jmp 0x46e04a
call fcn.00455884
push eax
lea ecx, [ebp - 0x94]
call fcn.00453d5f
call fcn.00455890
test al, al
je 0x46e0da
call fcn.00455896
mov edi, eax
jmp 0x46e13f
call fcn.0045588a
push eax
lea ecx, [ebp - 0x220]
call fcn.00453ff7
push ebx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00453bcf
push eax
call fcn.0046c868
pop ecx
pop ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x94]
call fcn.00453bcf
push eax
call fcn.00477f39
pop ecx
pop ecx
mov dword [ebp - 0x730], eax
cmp edi, ebx
je 0x46e12a
push edi
call fcn.0043d0ae
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.00453bb5
mov edi, dword [ebp - 0x730]
cmp edi, ebx
je 0x46e04a
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x738], ebx
call fcn.00453ff7
push 0x4b3fec
push 0x4c3930
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.00454157
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x738]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00453bcf
push eax
push edi
call fcn.004764b3
add esp, 0x14
test eax, eax
je 0x46e1b5
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00453bb5
jmp 0x46e04a
mov esi, dword [ebp - 0x4fc]
cmp esi, ebx
je 0x46e1a1
push esi
call fcn.0043b876
push esi
push eax
push dword [ebp - 0x738]
mov dword [ebp - 0x72c], eax
push edi
call fcn.00477fa0
add esp, 0x14
cmp eax, ebx
je 0x46e20b
cmp eax, 0x600
je 0x46e20b
push dword [ebp - 0x72c]
call fcn.0043d0ae
pop ecx
mov dword [ebp - 0x72c], ebx
call fcn.00455890
test al, al
jne 0x46e1a1
push edi
call fcn.00477fbb
pop ecx
jmp 0x46e1a1
call fcn.00455890
test al, al
jne 0x46e21b
push edi
call fcn.00477fbb
pop ecx
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00453bb5
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.00453bb5
cmp dword [ebp - 0x72c], ebx
jne 0x46e2bd
push ebx
push 0x80
push 3
push ebx
push 1
push bind
lea ecx, [ebp - 0x19c]
call fcn.00453bcf
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46e2bd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x46e2bd
push esi
mov dword [ebp - 0x730], ebx
call fcn.0043b876
pop ecx
push ebx
lea ecx, [ebp - 0x730]
push ecx
push esi
push eax
push edi
mov dword [ebp - 0x72c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x730], esi
je 0x46e2bd
push dword [ebp - 0x72c]
call fcn.0043d0ae
pop ecx
mov dword [ebp - 0x72c], ebx
xor edi, edi
cmp dword [ebp - 0x72c], ebx
je 0x46e2e3
push esi
push dword [ebp - 0x72c]
call fcn.0046d3f3
push dword [ebp - 0x72c]
mov edi, eax
call fcn.0043d0ae
add esp, 0xc
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], bl
call fcn.00453bb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.00455718
mov eax, edi
call fcn.004411b2
ret