Function at 0x46f590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov eax, dword [ebx + 0x34]
add eax, dword [ebx + 0x2c]
push 0
push 0
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.0046f8c0
cmp dword [ebp - 4], 0x2014b50
mov ecx, ebx
jne 0x46f78d
mov edi, dword [ebp + 8]
push edi
call fcn.0046f900
lea eax, [edi + 4]
push eax
mov ecx, ebx
call fcn.0046f900
lea eax, [edi + 8]
push eax
mov ecx, ebx
call fcn.0046f900
lea eax, [edi + 0xc]
push eax
mov ecx, ebx
call fcn.0046f900
lea esi, [edi + 0x10]
push esi
mov ecx, ebx
call fcn.0046f8c0
lea eax, [ebp - 0x10]
push eax
movzx eax, word [esi]
push eax
movzx eax, word [edi + 0x12]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [edi + 0x14]
push eax
mov ecx, ebx
call fcn.0046f8c0
lea eax, [edi + 0x18]
push eax
mov ecx, ebx
call fcn.0046f8c0
lea eax, [edi + 0x1c]
push eax
mov ecx, ebx
call fcn.0046f8c0
lea esi, [edi + 0x20]
push esi
mov ecx, ebx
call fcn.0046f900
lea eax, [edi + 0x24]
push eax
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.0046f900
lea eax, [edi + 0x28]
push eax
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.0046f900
lea eax, [edi + 0x2c]
push eax
mov ecx, ebx
call fcn.0046f900
lea eax, [edi + 0x30]
push eax
mov ecx, ebx
call fcn.0046f900
lea eax, [edi + 0x34]
push eax
mov ecx, ebx
call fcn.0046f8c0
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0046f8c0
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
push edi
mov ecx, ebx
call fcn.0046f4f0
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46f6d4
mov eax, dword [edi + 0x20]
mov edx, dword [ebp + 0x14]
cmp eax, edx
jae 0x46f6b1
mov byte [eax + ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, eax
mov dword [ebp + 0xc], ecx
jmp 0x46f6b6
mov ecx, edx
mov dword [ebp + 0xc], edx
test eax, eax
je 0x46f6d1
test edx, edx
je 0x46f6d1
push 0
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x46f72a
mov eax, dword [edi + 0x24]
mov ecx, dword [ebp + 0x1c]
cmp eax, ecx
mov edi, ecx
cmovb edi, eax
test esi, esi
je 0x46f702
push 0
push 0
push esi
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
xor esi, esi
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jbe 0x46f722
test ecx, ecx
je 0x46f722
push 0
lea eax, [ebp - 8]
push eax
push edi
push edx
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, edi
add esi, eax
jmp 0x46f72f
mov eax, dword [ebp + 8]
add esi, dword [eax]
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x46f784
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x24]
mov ecx, dword [edx]
cmp ecx, eax
jae 0x46f74d
mov byte [ecx + edi], 0
mov ecx, dword [edx]
mov dword [ebp + 0x10], ecx
jmp 0x46f750
mov dword [ebp + 0x10], eax
test esi, esi
je 0x46f768
push 0
push 0
push esi
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jbe 0x46f784
test eax, eax
je 0x46f784
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push edi
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0xffffffffffffff99
call fcn.0046e890
int3