Function at 0x46f8e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eff71
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 + 0x858], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x860], edi
mov dword [ebx + 0x864], eax
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x46fb5b
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 + 0x858]
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 0x46fb1a
mov ecx, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x1220], ecx
lea ecx, [ebp - 0x1220]
push ecx
push edi
push eax
mov dword [ebp - 0x1224], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46faf7
push 0x1000
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00588800
add esp, 0xc
lea eax, [ebp - 0x121c]
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 0x46faf7
push 5
lea eax, [ebp - 0x11da]
mov ecx, 0x80
lea esi, [ebp - 0x1010]
lea edi, [ebp - 0x1210]
push 0x64ee20
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x46faf1
mov eax, 0xaa55
cmp word [ebp - 0x1012], ax
jne 0x46faf1
mov ax, word [ebp - 0x1205]
mov edx, dword [ebp - 0x1218]
mov cx, word [ebp - 0x1202]
movzx esi, word [ebp - 0x11fa]
mov di, word [ebp - 0x11ff]
mov word [ebx + 0x14], ax
movzx ebx, ax
movzx eax, byte [ebp - 0x1203]
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 - 0x1200]
mov byte [edx + 0x28], al
movzx eax, cx
mov ecx, dword [ebp - 0x1218]
imul eax, ebx
imul ebx, esi
mov esi, dword [ebp - 0x1214]
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]
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 0x46faf7
mov dword [ebx + 0xc], 1
jmp 0x46faf7
mov esi, dword [ebp - 0x1214]
cmp dword [ebx + 0xc], 0
je 0x46fb04
mov edi, 1
jmp 0x46fb1c
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x46fb1a
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 0x46fb3b
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