Function at 0x471380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f03a2
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 - 0x1220]
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 - 0x121c]
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 0x471421
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 - 0x1220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471442
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 - 0x121c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
je 0x4715da
push eax
call dword [sym.imp.SCSIEngine.dll_public:_static_unsigned_int___cdecl_SCSIEngine::ComputeSectorSize_void__]
add esp, 4
mov dword [ebp - 0x1228], 0
lea ecx, [ebp - 0x1228]
lea eax, [eax + eax*2]
push 0
add eax, eax
push ecx
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x122c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4715b7
push 0x1000
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x1220]
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 0x4715b7
push 5
lea eax, [ebp - 0x11c2]
mov ecx, 0x80
lea esi, [ebp - 0x1014]
lea edi, [ebp - 0x1214]
push 0x64ef5c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x4715b4
mov eax, 0xaa55
cmp word [ebp - 0x1016], ax
jne 0x4715b4
mov edx, dword [ebp - 0x1218]
mov ax, word [ebp - 0x1209]
mov cx, word [ebp - 0x1206]
mov esi, dword [ebp - 0x11f0]
mov word [ebx + 0x14], ax
movzx ebx, byte [ebp - 0x1207]
movzx edi, ax
mov eax, dword [ebp - 0x11e8]
mov dword [edx + 0x1c], eax
mov al, byte [ebp - 0x1204]
mov byte [edx + 0x24], al
imul ebx, edi
movzx eax, cx
imul eax, edi
mov word [edx + 0x16], cx
mov ecx, dword [ebp - 0x1218]
imul edi, esi
mov dword [edx + 0x18], ebx
mov dword [edx + 0x20], esi
cdq
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov ecx, edi
add ecx, eax
mov eax, 0
adc eax, edx
mov edx, dword [ebp - 0x1218]
mov dword [edx + 0x30], ecx
add ecx, edi
mov dword [edx + 0x34], eax
adc eax, 0
mov dword [edx + 0x38], ecx
or esi, 0xffffffff
mov dword [edx + 0x3c], eax
test ebx, ebx
mov ebx, edx
je 0x4715b7
mov dword [ebx + 0xc], 1
jmp 0x4715b7
or esi, 0xffffffff
cmp dword [ebx + 0xc], 0
je 0x4715c4
mov edi, 1
jmp 0x4715dc
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x4715da
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 - 0x121c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4715fe
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