Function at 0x42fb04
Capabilities:
Get disk information
Get disk size
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x98
push ebx
push esi
push edi
lea ecx, [ebp + 0x20]
call fcn.00435d62
or dword [ebp + 0x48], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0xc], 0xffffffff
xor esi, esi
push 0x101064
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x24], esi
call fcn.00435c56
mov ebx, dword [ebp + 0x30]
add ebx, 0x100028
lea eax, [ebx + 8]
lea edi, [eax + 0x41a]
mov dword [ebp + 0x50], eax
add edi, 0x20a
mov word [edi], si
lea eax, [edi + 0x824]
mov word [eax], si
mov dword [ebp + 8], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 8], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 0x14], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp + 4], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x30]
push 0x28
lea ecx, [eax + 8]
push esi
push eax
mov dword [ebp + 0x14], 0x4949a4
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x2c], esi
mov dword [ebp], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x44], eax
call fcn.0047fd70
mov eax, dword [ebp + 0x44]
add esp, 0xc
push 0x5c
push esi
push dword [ebp + 0x60]
mov dword [eax], 5
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x2f
push esi
push dword [ebp + 0x60]
mov dword [ebp + 0x4c], eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ecx, dword [ebp + 0x4c]
cmp eax, ecx
jbe 0x42fbe4
mov dword [ebp + 0x4c], eax
mov ecx, eax
cmp ecx, esi
mov dword [ebp + 0x44], esi
je 0x42fbf5
mov ax, word [ecx]
mov word [ebp + 0x44], ax
mov word [ecx], si
push esi
push esi
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
mov eax, dword [ebp + 0x4c]
cmp eax, esi
je 0x42fc16
mov cx, word [ebp + 0x44]
mov word [eax], cx
mov eax, dword [ebp + 0x50]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov word [ebx + 6], 0x5c
mov word [ebx + 2], 0x5c
mov word [ebx], 0x5c
mov word [ebx + 4], 0x2e
push 0x20d
push dword [ebp + 0x60]
mov dword [ebp - 0x1c], esi
mov word [eax], si
call fcn.0043649f
add esp, 0x10
push 0x5c
push dword [ebp + 0x50]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
or dword [ebp + 0x40], 0xffffffff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x50]
push 0x5c
push esi
push dword [ebp + 0x50]
add eax, 0x41a
mov word [eax], si
mov word [edi], si
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
mov dword [ebp + 0x4c], eax
mov word [eax + 2], si
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
push 0x209
push edi
push dword [ebp + 0x50]
mov dword [ebp + 0x44], eax
mov word [edi], si
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp + 0x44], esi
mov eax, dword [ebp + 0x4c]
mov word [eax], si
jne 0x42fd29
jmp 0x42fcc8
mov eax, dword [ebp + 0x4c]
cmp eax, dword [ebp - 0x20]
jbe 0x4300fd
push 0x5c
push esi
push dword [ebp + 0x50]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
mov dword [ebp + 0x4c], eax
mov word [eax + 2], si
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
push 0x209
push edi
push dword [ebp + 0x50]
mov dword [ebp + 0x44], eax
mov word [edi], si
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp + 0x44], esi
mov eax, dword [ebp + 0x4c]
mov word [eax], si
je 0x42fcc5
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push 0x499540
mov dword [ebp + 0x48], 1
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x42fd54
mov dword [ebp + 0x40], 1
jmp 0x42fdd9
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push str.FAT32
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x42fd75
mov dword [ebp + 0x40], 2
jmp 0x42fdd9
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push str.exFAT
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x42fd96
mov dword [ebp + 0x40], 3
jmp 0x42fdd9
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push 0x49951c
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x42fdba
mov dword [ebp + 0x40], 4
mov dword [ebp + 0x48], esi
jmp 0x42fdd9
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push str.CDFS
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x42fdd9
mov dword [ebp + 0x40], 5
cmp word [edi], si
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x14], ebx
je 0x42fe02
mov ecx, eax
sub ecx, dword [ebp + 0x50]
and ecx, 0xfffffffe
cmp ecx, 4
je 0x42fe02
push edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov word [edi + eax*2 - 2], si
jmp 0x42fe0d
sub eax, dword [ebp + 0x50]
and eax, 0xfffffffe
cmp eax, 4
jne 0x42fe10
mov dword [ebp + 0x48], esi
cmp dword [ebp + 0x40], esi
jge 0x42fe21
mov eax, dword [ebp + 0x78]
cmp word [eax], si
je 0x42fef2
mov edi, dword [ebp + 0x14]
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
push edi
lea ecx, [ebp + 0x3c]
call fcn.004045f9
cmp dword [ebp + 0x48], esi
je 0x42fe45
mov word [edi], si
push 7
pop ecx
push esi
xor eax, eax
mov dword [ebp - 0x44], esi
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x2c]
push eax
push 0x20
lea eax, [ebp - 0x44]
push eax
push esi
push esi
push 0x74004
push dword [ebp + 0x3c]
mov dword [ebp + 0x2c], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp + 0x30]
mov ebx, 0x200
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
push esi
push edi
mov dword [ebp - 0xc], eax
call fcn.0047fd70
add esp, 0xc
push esi
lea eax, [ebp + 0x2c]
push eax
push ebx
push edi
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [ebp + 0x3c]
call fcn.00402b27
mov ebx, dword [ebp + 0x40]
cmp ebx, 3
jne 0x42febb
mov edi, dword [edi + 0x58]
imul edi, dword [ebp + 0x28]
mov dword [ebp + 0x24], edi
jmp 0x42fef2
cmp ebx, 2
je 0x42fec5
cmp ebx, 1
jne 0x42fef2
cmp ebx, 2
movzx edx, word [edi + 0xe]
mov al, byte [edi + 0x10]
movzx ecx, word [edi + 0x11]
jne 0x42feda
mov edi, dword [edi + 0x24]
jmp 0x42fede
movzx edi, word [edi + 0x16]
movzx eax, al
imul eax, edi
add eax, edx
imul eax, dword [ebp + 0x28]
shl ecx, 5
add eax, ecx
mov dword [ebp + 0x24], eax
push esi
push 0x80
push 3
push esi
push 7
push esi
push dword [ebp + 0x60]
lea ecx, [ebp + 0x3c]
call fcn.004045f9
cmp dword [ebp + 0x3c], esi
jne 0x42ff16
mov dword [ebp + 0x48], esi
jmp 0x4300fd
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x3c]
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x38], esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push dword [ebp - 8]
call fcn.004752d0
mov ebx, dword [ebp + 0x28]
imul ebx, dword [ebp]
xor eax, eax
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp + 0x40], ebx
call fcn.004752ea
push 0x100028
push esi
push dword [ebp + 0x30]
call fcn.0047fd70
mov edi, dword [ebp + 0x10]
add esp, 0x24
push esi
lea eax, [ebp + 0x2c]
push eax
push 0x100020
push edi
push 8
push dword [ebp + 0x1c]
mov dword [edi], 0x10000
push 0x90073
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x42ffaf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x48], eax
jne 0x4300fd
push 0xffffffffffffffff
push 0xffffffffffffffda
push dword [ebp + 8]
call fcn.004752d0
add esp, 0xc
jmp 0x4300fd
mov eax, dword [edi]
inc eax
imul eax, eax, 0x64
push eax
lea ecx, [ebp + 0x20]
call fcn.00435da9
mov eax, dword [ebp + 0x20]
or ecx, 0xffffffff
cmp dword [edi], esi
mov dword [ebp + 0x4c], eax
mov eax, ecx
jbe 0x42fff1
mov ecx, dword [edi + 0x1c]
cmp ecx, esi
mov eax, dword [edi + 0x18]
jl 0x42fff1
jg 0x42ffdd
cmp eax, esi
jb 0x42fff1
push ecx
push eax
xor eax, eax
push eax
push ebx
call fcn.0047fe80
xor ecx, ecx
add eax, dword [ebp + 0x24]
adc edx, ecx
mov ecx, edx
push ecx
push eax
push dword [ebp + 8]
call fcn.004752d0
mov eax, dword [edi]
add esp, 0xc
cmp dword [ebp + 0x48], esi
je 0x430007
neg eax
cdq
push edx
push eax
push dword [ebp + 4]
call fcn.004752d0
mov eax, dword [ebp + 0x70]
add esp, 0xc
cmp word [eax], si
lea ecx, [edi + 8]
je 0x4300ed
cmp dword [edi], esi
mov dword [ebp + 0x44], esi
jbe 0x4300f8
lea ebx, [edi + 0x10]
mov dword [ebp + 0x48], ebx
mov eax, dword [ebx]
sub eax, dword [ecx]
mov ecx, dword [ebx + 0xc]
cmp ecx, esi
mov edx, dword [ebx + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], ecx
jl 0x430074
jg 0x430052
cmp edx, esi
jb 0x430074
push ecx
push dword [ebp + 0xc]
xor eax, eax
push eax
push dword [ebp + 0x40]
call fcn.0047fe80
mov ebx, dword [ebp + 0x48]
xor ecx, ecx
add eax, dword [ebp + 0x24]
adc edx, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x10], edx
xor ecx, ecx
push ecx
push eax
xor eax, eax
push eax
push dword [ebp + 0x40]
call fcn.0047fe80
cmp edx, dword [ebp + 0x38]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
jb 0x4300a1
ja 0x430095
cmp eax, dword [ebp + 0x34]
jbe 0x4300a1
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x18]
sub dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x1c]
push 0x499500
push dword [ebp + 0x10]
sbb dword [ebp + 0x38], eax
push dword [ebp + 0xc]
push dword [ebp + 0x4c]
call fcn.004752a8
push str._I64u_r_n
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
call fcn.004752a8
add esp, 0x20
inc dword [ebp + 0x44]
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x44]
mov ecx, ebx
add ebx, 0x10
cmp eax, dword [edi]
mov dword [ebp + 0x48], ebx
jb 0x430035
cmp dword [edi], esi
jbe 0x4300f8
mov eax, dword [ebp + 0x4c]
mov word [eax - 4], si
mov eax, dword [edi]
mov dword [ebp + 0x48], eax
push dword [ebp + 8]
mov edi, dword [ebp + 0x5c]
push dword [ebp + 0x64]
mov ecx, edi
call fcn.00435749
push dword [ebp - 8]
mov ecx, edi
push dword [ebp + 0x68]
call fcn.00435749
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 0x6c]
call fcn.00435749
push dword [ebp + 4]
mov ecx, edi
push dword [ebp + 0x74]
call fcn.00435749
push dword [ebp + 0x20]
mov ecx, edi
push dword [ebp + 0x70]
call fcn.00435749
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004752d0
add esp, 0xc
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 0x78]
call fcn.00435749
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x7c]
call fcn.00435749
cmp dword [ebp + 0x48], 1
je 0x430181
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jne 0x43017f
xor eax, eax
inc eax
mov esi, eax
lea ecx, [ebp + 0x3c]
call fcn.00402b27
lea ecx, [ebp + 0x30]
call fcn.0043092f
lea ecx, [ebp + 0x20]
call fcn.0043092f
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x54
leave
ret