Function at 0x46e390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5efd02
mov eax, dword fs:[0]
push eax
mov eax, 0x1218
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
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 - 0x1220]
call fcn.0046e750
mov byte [ebp - 4], 1
mov edx, eax
push 0x3a
lea ecx, [ebp - 0x1218]
call fcn.0046e810
add esp, 8
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x1220]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e42b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x121c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e44c
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 - 0x1218]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
je 0x46e5c7
push eax
call dword [sym.imp.SCSIEngine.dll_public:_static_unsigned_int___cdecl_SCSIEngine::ComputeSectorSize_void__]
add esp, 4
mov dword [ebp - 0x1220], 0
lea ecx, [ebp - 0x1220]
lea eax, [eax + eax*2]
push 0
shl eax, 2
push ecx
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x1224], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46e5a4
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 0x46e5a4
push 8
lea eax, [ebp - 0x1211]
mov ecx, 0x80
lea esi, [ebp - 0x1014]
lea edi, [ebp - 0x1214]
push str.EXFAT
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a86e0
add esp, 0xc
test eax, eax
jne 0x46e5a1
mov eax, 0xaa55
cmp ax, word [ebp - 0x1016]
jne 0x46e5a1
cmp byte [ebp - 0x11a6], 1
jne 0x46e5a1
movzx ecx, byte [ebp - 0x11a8]
mov esi, 1
mov ax, si
mov dword [ebx + 0x2c], 0
shl ax, cl
or edi, 0xffffffff
movzx ecx, byte [ebp - 0x11a7]
movzx edx, ax
mov word [ebx + 0x14], ax
mov eax, dword [ebp - 0x11b4]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x11c0]
shl esi, cl
mov dword [ebx + 0x24], eax
mov eax, edx
imul eax, dword [ebp - 0x11c4]
imul esi, edx
imul edx, dword [ebp - 0x11bc]
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x30], edx
test esi, esi
je 0x46e5a4
mov dword [ebx + 0xc], 1
jmp 0x46e5a4
or edi, 0xffffffff
cmp dword [ebx + 0xc], 0
je 0x46e5b1
mov esi, 1
jmp 0x46e5c9
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x46e5c7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x10], 0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1218]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x46e5eb
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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