Function at 0x470ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f0271
mov eax, dword fs:[0]
push eax
mov eax, 0x1218
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], 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
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebx + 0x1050], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x1058], edi
mov dword [ebx + 0x105c], eax
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x471151
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1214], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1214]
push dword [ebx + 0x1050]
push str..PhysicalDrive_d
push eax
call fcn.0040d300
mov esi, dword [ebp - 0x1214]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
je 0x471110
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x121c], ecx
lea ecx, [ebp - 0x121c]
push ecx
push edi
push eax
mov dword [ebp - 0x1220], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4710ed
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x1224]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4710ed
push 5
lea eax, [ebp - 0x11be]
mov ecx, 0x80
lea esi, [ebp - 0x1010]
lea edi, [ebp - 0x1210]
push 0x64ef5c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x4710e7
mov eax, 0xaa55
cmp word [ebp - 0x1012], ax
jne 0x4710e7
mov edx, dword [ebp - 0x1218]
mov ax, word [ebp - 0x1205]
mov cx, word [ebp - 0x1202]
mov esi, dword [ebp - 0x11ec]
mov word [ebx + 0x14], ax
movzx ebx, byte [ebp - 0x1203]
movzx edi, ax
mov eax, dword [ebp - 0x11e4]
mov dword [edx + 0x1c], eax
mov al, byte [ebp - 0x1200]
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
mov esi, dword [ebp - 0x1214]
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
test ebx, ebx
mov dword [edx + 0x3c], eax
mov ebx, edx
je 0x4710ed
mov dword [ebx + 0xc], 1
jmp 0x4710ed
mov esi, dword [ebp - 0x1214]
cmp dword [ebx + 0xc], 0
je 0x4710fa
mov edi, 1
jmp 0x471112
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x471110
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10], 0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471131
mov ecx, dword [esi]
push esi
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 - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040b250
int3