Function at 0x46fca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0022
mov eax, dword fs:[0]
push eax
mov eax, 0x1220
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1218], ebx
movzx esi, word [ebp + 8]
lea ecx, [ebp - 0x121c]
push 0x64edf4
mov word [ebx + 8], si
call fcn.0040c2f0
mov dword [ebp - 4], 0
mov edx, eax
push esi
lea ecx, [ebp - 0x1228]
call fcn.0046e750
mov byte [ebp - 4], 1
mov edx, eax
push 0x3a
lea ecx, [ebp - 0x1220]
call fcn.0046e810
add esp, 8
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x1228]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46fd41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x121c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46fd62
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [ebp - 0x1220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
je 0x46feff
push 0
lea ecx, [ebp - 0x1228]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x122c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46fedc
push 0x1000
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x121c]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fedc
push 5
lea eax, [ebp - 0x11de]
mov ecx, 0x80
lea esi, [ebp - 0x1014]
lea edi, [ebp - 0x1214]
push 0x64ee20
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x46fed9
mov eax, 0xaa55
cmp word [ebp - 0x1016], ax
jne 0x46fed9
mov ax, word [ebp - 0x1209]
mov edx, dword [ebp - 0x1218]
mov cx, word [ebp - 0x1206]
movzx esi, word [ebp - 0x11fe]
mov di, word [ebp - 0x1203]
mov word [ebx + 0x14], ax
movzx ebx, ax
movzx eax, byte [ebp - 0x1207]
imul eax, ebx
mov word [edx + 0x16], cx
mov dword [edx + 0x24], esi
mov word [edx + 0x18], di
mov dword [ebp - 0x121c], eax
mov dword [edx + 0x1c], eax
mov al, byte [ebp - 0x1204]
mov byte [edx + 0x28], al
movzx eax, cx
mov ecx, dword [ebp - 0x1218]
imul eax, ebx
imul ebx, esi
cdq
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
mov ecx, ebx
add ecx, eax
mov eax, 0
adc eax, edx
mov edx, dword [ebp - 0x1218]
or esi, 0xffffffff
mov dword [edx + 0x3c], eax
mov dword [edx + 0x38], ecx
add ecx, ebx
mov ebx, edx
movzx eax, di
shl eax, 5
add eax, ecx
cmp dword [ebp - 0x121c], 0
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], 0
jbe 0x46fedc
mov dword [ebx + 0xc], 1
jmp 0x46fedc
or esi, 0xffffffff
cmp dword [ebx + 0xc], 0
je 0x46fee9
mov edi, 1
jmp 0x46ff01
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x46feff
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10], 0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x46ff23
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4