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

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x108
push ebx
push esi
push edi
lea ecx, [ebp + 0x1c]
call fcn.10046123
or dword [ebp + 0x34], 0xffffffff
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
xor esi, esi
push 0x101064
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x18], esi
call fcn.10045fcc
mov ebx, dword [ebp + 0x24]
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], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 0xc], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 0x1c], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 8], eax
add eax, 0x64
mov word [eax], si
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x24]
push 0x28
lea ecx, [eax + 8]
push esi
push eax
mov dword [ebp + 0xc], 0x100c6a64
mov dword [ebp + 0x14], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0x38], esi
mov dword [ebp - 4], esi
mov dword [ebp + 0x20], esi
mov dword [ebp + 0x44], esi
mov dword [ebp + 0x3c], eax
call fcn.100b40f0
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x60]
mov dword [eax], 5
mov ax, word [ecx]
add esp, 0xc
cmp ax, 0x5c
mov dword [ebp + 0x48], ecx
jne 0x1003e50d
cmp word [ecx + 2], ax
jne 0x1003e50d
mov dx, word [ecx + 4]
cmp dx, 0x3f
je 0x1003e501
cmp dx, 0x2e
jne 0x1003e50d
cmp word [ecx + 6], 0x5c
jne 0x1003e50d
add ecx, 8
jmp 0x1003e51c
cmp ax, si
je 0x1003e51f
cmp word [ecx + 2], 0x3a
jne 0x1003e51f
add ecx, 4
mov dword [ebp + 0x48], ecx
push 0x5c
push esi
push dword [ebp + 0x48]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x2f
push esi
push dword [ebp + 0x48]
mov dword [ebp + 0x4c], eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, dword [ebp + 0x4c]
jbe 0x1003e542
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x4c]
cmp eax, esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], eax
je 0x1003e567
mov ecx, dword [ebp + 0x60]
cmp ecx, dword [ebp + 0x48]
je 0x1003e55d
add eax, 2
mov dword [ebp + 0x40], eax
mov cx, word [eax]
mov word [ebp + 0x3c], cx
mov word [eax], si
push esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp dword [ebp + 0x4c], esi
je 0x1003e589
mov ax, word [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
mov word [ecx], ax
mov eax, dword [ebp + 0x50]
lea ecx, [ebp - 0x20]
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 - 0x20], esi
mov word [eax], si
call fcn.100469ca
add esp, 0x10
push 0x5c
push dword [ebp + 0x50]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
or dword [ebp + 0x48], 0xffffffff
mov dword [ebp + 0x3c], 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 - 0x24]
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 + 0x40], eax
mov word [edi], si
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x40], esi
mov eax, dword [ebp + 0x4c]
mov word [eax], si
jne 0x1003e69c
jmp 0x1003e63b
mov eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 0x3c]
jbe 0x1003eaab
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 - 0x24]
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 + 0x40], eax
mov word [edi], si
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x40], esi
mov eax, dword [ebp + 0x4c]
mov word [eax], si
je 0x1003e638
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push 0x100cd3e0
mov dword [ebp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1003e6c7
mov dword [ebp + 0x48], 1
jmp 0x1003e74c
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push 0x100cd3d4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1003e6e8
mov dword [ebp + 0x48], 2
jmp 0x1003e74c
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push str.exFAT
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003e709
mov dword [ebp + 0x48], 3
jmp 0x1003e74c
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push 0x100cd3bc
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1003e72d
mov dword [ebp + 0x48], 4
mov dword [ebp + 0x34], esi
jmp 0x1003e74c
mov eax, dword [ebp + 0x50]
add eax, 0x41a
push eax
push str.CDFS
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003e74c
mov dword [ebp + 0x48], 5
cmp word [edi], si
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0xc], ebx
je 0x1003e775
mov ecx, eax
sub ecx, dword [ebp + 0x50]
and ecx, 0xfffffffe
cmp ecx, 4
je 0x1003e775
push edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [edi + eax*2 - 2], si
jmp 0x1003e780
sub eax, dword [ebp + 0x50]
and eax, 0xfffffffe
cmp eax, 4
jne 0x1003e783
mov dword [ebp + 0x34], esi
cmp dword [ebp + 0x48], esi
jge 0x1003e794
mov eax, dword [ebp + 0x78]
cmp word [eax], si
je 0x1003e8a0
mov edi, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
push edi
lea ecx, [ebp + 0x44]
call fcn.10005b9d
cmp dword [ebp + 0x34], esi
je 0x1003e7b8
mov word [edi], si
push 0x24
pop ecx
push esi
xor eax, eax
lea edi, [ebp - 0xb4]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [ebp + 0x38]
push eax
push 0x90
lea eax, [ebp - 0xb4]
push eax
push esi
push esi
push 0x70048
push dword [ebp + 0x44]
mov dword [ebp + 0x38], esi
call edi
test eax, eax
jne 0x1003e818
push esi
lea eax, [ebp + 0x38]
push eax
push 0x20
lea eax, [ebp - 0xac]
push eax
push esi
push esi
push 0x74004
push dword [ebp + 0x44]
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
mov dword [ebp + 0x38], esi
call edi
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp + 0x24]
mov ebx, 0x200
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xa8]
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.100b40f0
add esp, 0xc
push esi
lea eax, [ebp + 0x38]
push eax
push ebx
push edi
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp + 0x44]
call fcn.10002d56
mov ebx, dword [ebp + 0x48]
cmp ebx, 3
jne 0x1003e869
mov edi, dword [edi + 0x58]
imul edi, dword [ebp + 0x20]
mov dword [ebp + 0x18], edi
jmp 0x1003e8a0
cmp ebx, 2
je 0x1003e873
cmp ebx, 1
jne 0x1003e8a0
cmp ebx, 2
movzx edx, word [edi + 0xe]
mov al, byte [edi + 0x10]
movzx ecx, word [edi + 0x11]
jne 0x1003e888
mov edi, dword [edi + 0x24]
jmp 0x1003e88c
movzx edi, word [edi + 0x16]
movzx eax, al
imul eax, edi
add eax, edx
imul eax, dword [ebp + 0x20]
shl ecx, 5
add eax, ecx
mov dword [ebp + 0x18], eax
push esi
push 0x80
push 3
push esi
push 7
push esi
push dword [ebp + 0x60]
lea ecx, [ebp + 0x44]
call fcn.10005b9d
cmp dword [ebp + 0x44], esi
jne 0x1003e8c4
mov dword [ebp + 0x34], esi
jmp 0x1003eaab
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x44]
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp - 0xc]
call fcn.100a0e43
mov ebx, dword [ebp + 0x20]
imul ebx, dword [ebp - 4]
xor eax, eax
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp + 0x3c], ebx
call fcn.100a0e5d
push 0x100028
push esi
push dword [ebp + 0x24]
call fcn.100b40f0
mov edi, dword [ebp + 8]
add esp, 0x24
push esi
lea eax, [ebp + 0x38]
push eax
push 0x100020
push edi
push 8
push dword [ebp + 0x14]
mov dword [edi], 0x10000
push 0x90073
push dword [ebp + 0x44]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003e95d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x34], eax
jne 0x1003eaab
push 0xffffffffffffffff
push 0xffffffffffffffda
push dword [ebp]
call fcn.100a0e43
add esp, 0xc
jmp 0x1003eaab
mov eax, dword [edi]
inc eax
imul eax, eax, 0x64
push eax
lea ecx, [ebp + 0x1c]
call fcn.10046168
mov eax, dword [ebp + 0x1c]
or ecx, 0xffffffff
cmp dword [edi], esi
mov dword [ebp + 0x4c], eax
mov eax, ecx
jbe 0x1003e99f
mov ecx, dword [edi + 0x1c]
cmp ecx, esi
mov eax, dword [edi + 0x18]
jl 0x1003e99f
jg 0x1003e98b
cmp eax, esi
jb 0x1003e99f
push ecx
push eax
xor eax, eax
push eax
push ebx
call fcn.100b4200
xor ecx, ecx
add eax, dword [ebp + 0x18]
adc edx, ecx
mov ecx, edx
push ecx
push eax
push dword [ebp]
call fcn.100a0e43
mov eax, dword [edi]
add esp, 0xc
cmp dword [ebp + 0x34], esi
je 0x1003e9b5
neg eax
cdq
push edx
push eax
push dword [ebp - 8]
call fcn.100a0e43
mov eax, dword [ebp + 0x70]
add esp, 0xc
cmp word [eax], si
lea ecx, [edi + 8]
je 0x1003ea9b
cmp dword [edi], esi
mov dword [ebp + 0x60], esi
jbe 0x1003eaa6
lea ebx, [edi + 0x10]
mov dword [ebp + 0x40], 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 + 0x30], eax
mov dword [ebp + 4], edx
mov dword [ebp + 8], ecx
jl 0x1003ea22
jg 0x1003ea00
cmp edx, esi
jb 0x1003ea22
push ecx
push dword [ebp + 4]
xor eax, eax
push eax
push dword [ebp + 0x3c]
call fcn.100b4200
mov ebx, dword [ebp + 0x40]
xor ecx, ecx
add eax, dword [ebp + 0x18]
adc edx, ecx
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp + 8], edx
xor ecx, ecx
push ecx
push eax
xor eax, eax
push eax
push dword [ebp + 0x3c]
call fcn.100b4200
cmp edx, dword [ebp + 0x2c]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x14], edx
jb 0x1003ea4f
ja 0x1003ea43
cmp eax, dword [ebp + 0x28]
jbe 0x1003ea4f
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
sub dword [ebp + 0x28], eax
mov eax, dword [ebp + 0x14]
push 0x100cd3a0
push dword [ebp + 8]
sbb dword [ebp + 0x2c], eax
push dword [ebp + 4]
push dword [ebp + 0x4c]
call fcn.100a0df8
push str._I64u_r_n
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.100a0df8
add esp, 0x20
inc dword [ebp + 0x60]
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x60]
mov ecx, ebx
add ebx, 0x10
cmp eax, dword [edi]
mov dword [ebp + 0x40], ebx
jb 0x1003e9e3
cmp dword [edi], esi
jbe 0x1003eaa6
mov eax, dword [ebp + 0x4c]
mov word [eax - 4], si
mov eax, dword [edi]
mov dword [ebp + 0x34], eax
push dword [ebp]
mov esi, dword [ebp + 0x5c]
push dword [ebp + 0x64]
mov ecx, esi
call fcn.100457c2
push dword [ebp - 0xc]
mov ecx, esi
push dword [ebp + 0x68]
call fcn.100457c2
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp + 0x6c]
call fcn.100457c2
push dword [ebp - 8]
mov ecx, esi
push dword [ebp + 0x74]
call fcn.100457c2
push dword [ebp + 0x1c]
mov ecx, esi
push dword [ebp + 0x70]
call fcn.100457c2
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call fcn.100a0e43
add esp, 0xc
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp + 0x78]
call fcn.100457c2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 0x7c]
call fcn.100457c2
push dword [ebp + 0x34]
call fcn.1003a28f
pop ecx
lea ecx, [ebp + 0x44]
mov esi, eax
call fcn.10002d56
lea ecx, [ebp + 0x24]
call fcn.1003f96c
lea ecx, [ebp + 0x1c]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x54
leave
ret