Function at 0x414b90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
mov ebx, ecx
mov edi, edx
push 3
push 0x80000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x448], eax
cmp eax, 0xffffffff
jne 0x414c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xa0
test esi, esi
cmove esi, eax
test edi, edi
je 0x414c0c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x414bfc
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 4
mov ecx, esi
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x40c]
xorps xmm0, xmm0
push ecx
push 0x20
lea ecx, [ebp - 0x438]
push ecx
push 0
push 0
push 0x560000
push eax
movups xmmword [ebp - 0x438], xmm0
movups xmmword [ebp - 0x428], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test esi, esi
je 0x414c97
mov ecx, dword [ebp - 0x424]
lea esi, [ebx + 0x38]
mov eax, dword [ebp - 0x428]
push ecx
push eax
push esi
mov dword [ebp - 0x444], eax
mov eax, dword [ebx]
push str._VALT___s_belongs_to_a_single_disk__offset_is_0x_llx.
push 2
mov dword [ebp - 0x454], ecx
push dword [eax]
call fcn.00401210
mov eax, dword [ebp - 0x444]
add esp, 0x18
mov ecx, dword [ebp - 0x454]
jmp 0x414cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44c], eax
cmp eax, 0xea
jne 0x415026
mov ecx, dword [ebp - 0x438]
cmp ecx, 1
jbe 0x41502a
mov eax, dword [ebx]
lea esi, [ebx + 0x38]
push ecx
push esi
push str._VALT___s_is_scattered_over__u_disks__offset_is_0.
push 2
push dword [eax]
xorps xmm0, xmm0
movlpd qword [ebp - 0x450], xmm0
call fcn.00401210
mov ecx, dword [ebp - 0x44c]
add esp, 0x14
mov eax, dword [ebp - 0x450]
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0x5c], ecx
push 0
cmp eax, 1
jne 0x414da5
lea eax, [ebp - 0x40c]
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x414d67
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
mov eax, 0xa0
test esi, esi
cmove esi, eax
test edi, edi
je 0x414d60
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x414d50
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 4
mov ecx, esi
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
xor esi, esi
jmp 0x41505a
movzx ecx, byte [ebp - 0x3fc]
movzx eax, byte [ebp - 0x3fd]
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp - 0x3fb]
imul eax, ecx
mov dword [ebx + 0x54], ecx
push eax
push ecx
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx]
push esi
push str._VALT___s_is_NTFS_with_sector__u__cluster__u.
push 2
push dword [eax]
call fcn.00401210
add esp, 0x18
jmp 0x414f4a
cmp eax, 0xa
lea eax, [ebp - 0x40c]
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 0x448]
jne 0x414e42
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov ecx, edi
call fcn.0041b660
mov esi, eax
test esi, esi
je 0x41505a
movzx ecx, byte [ebp - 0x39c]
mov esi, 1
movzx eax, byte [ebp - 0x3ae]
mov edx, 1
shl esi, cl
movzx ecx, byte [ebp - 0x39b]
shl edx, cl
movzx ecx, byte [ebp - 0x3ad]
shl ecx, 8
add ecx, eax
imul edx, esi
movzx eax, byte [ebp - 0x3af]
shl ecx, 8
add ecx, eax
mov dword [ebx + 0x54], esi
movzx eax, byte [ebp - 0x3b0]
shl ecx, 8
add ecx, eax
mov dword [ebx + 0x6c], edx
imul ecx, esi
lea eax, [ebx + 0x38]
push 0
push ecx
push edx
push esi
push eax
push str._VALT___s_is_exFAT_with_sector__u__cluster__u__heap_base__I64u.
jmp 0x414f32
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, eax
mov ecx, edi
call fcn.0041b660
mov esi, eax
test esi, esi
je 0x41505a
movzx edx, byte [ebp - 0x3fc]
movzx eax, byte [ebp - 0x3fd]
movzx ecx, byte [ebp - 0x3f9]
movzx esi, byte [ebp - 0x3f1]
shl edx, 8
add edx, eax
shl ecx, 8
movzx eax, byte [ebp - 0x3fb]
imul eax, edx
shl esi, 8
mov dword [ebp - 0x444], edx
mov dword [ebx + 0x54], edx
mov dword [ebp - 0x44c], eax
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebp - 0x3fa]
add ecx, eax
movzx eax, byte [ebp - 0x3f2]
mov dword [ebp - 0x454], ecx
add esi, eax
jne 0x414ee3
movzx esi, byte [ebp - 0x3e1]
movzx eax, byte [ebp - 0x3e2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 0x3e3]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 0x3e4]
shl esi, 8
add esi, eax
movzx ecx, byte [ebp - 0x3f6]
dec edx
movzx eax, byte [ebp - 0x3f7]
shl ecx, 8
add eax, ecx
movzx ecx, byte [ebp - 0x3f8]
shl eax, 5
add eax, edx
imul ecx, esi
xor edx, edx
div dword [ebp - 0x444]
push 0
add eax, dword [ebp - 0x454]
add ecx, eax
mov eax, dword [ebp - 0x444]
imul ecx, eax
push ecx
push dword [ebp - 0x44c]
push eax
lea eax, [ebx + 0x38]
push eax
push str._VALT___s_is_FAT_with_sector__u__cluster__u__heap_base__I64u.
mov eax, dword [ebx]
push 2
mov dword [ebx + 0x70], ecx
mov dword [ebx + 0x74], 0
push dword [eax]
call fcn.00401210
add esp, 0x20
mov esi, dword [ebx]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x438], 0
movlpd qword [ebp - 0x430], xmm0
mov ecx, dword [esi + 0x1c]
movlpd qword [ebp - 0x428], xmm0
movlpd qword [ebp - 0x420], xmm0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x440], 0x2c
mov dword [ebp - 0x43c], 6
mov dword [ebp - 0x434], eax
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x414fb1
push 1
lea ecx, [ebp - 0x440]
push ecx
push eax
jmp 0x414fbd
push 0
lea eax, [ebp - 0x440]
push eax
push dword [ecx + 0x14]
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
cmp dword [esi + 0x5c], 0
mov dword [ebp - 0x444], eax
jne 0x41500c
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
mov eax, 0xa0
test esi, esi
cmove esi, eax
test edi, edi
je 0x41500c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x414ffc
mov edx, dword [ecx]
mov eax, dword [edx]
add eax, ecx
push eax
mov eax, dword [edx + 4]
call eax
add esp, 4
mov ecx, esi
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0x444]
xor eax, eax
test ecx, ecx
mov dword [ebx + 0x78], ecx
setne al
mov dword [ebp - 0x44c], eax
mov esi, eax
jmp 0x41505a
test eax, eax
je 0x41505a
test edi, edi
je 0x41505a
mov edx, dword [edi + 4]
test edx, edx
je 0x41504a
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
mov eax, dword [ebp - 0x44c]
add esp, 4
mov ecx, eax
mov dword [edi], 0x19
call fcn.0041b480
mov dword [edi + 4], eax
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425576
mov esp, ebp
pop ebp
ret