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

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x94
push ebx
push esi
push edi
lea ecx, [ebp + 0x28]
call fcn.0042e1c4
or dword [ebp + 0x48], 0xffffffff
or dword [ebp + 0xc], 0xffffffff
or dword [ebp + 0x10], 0xffffffff
xor esi, esi
push 0x101064
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x1c], esi
call fcn.0042e06b
mov eax, dword [ebp + 0x30]
lea ebx, [eax + 0x100028]
lea ecx, [ebx + 8]
lea edi, [ecx + 0x41a]
mov dword [ebp + 0x4c], ecx
add edi, 0x20a
mov word [edi], si
lea ecx, [edi + 0x824]
mov word [ecx], si
mov dword [ebp + 0x18], ecx
add ecx, 0x64
mov word [ecx], si
mov dword [ebp + 8], ecx
add ecx, 0x64
mov word [ecx], si
mov dword [ebp - 8], ecx
add ecx, 0x64
mov word [ecx], si
mov dword [ebp + 4], ecx
add ecx, 0x64
mov word [ecx], si
mov dword [ebp + 0x14], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
push 0x28
mov dword [ebp - 0x1c], ecx
lea ecx, [eax + 8]
push esi
push eax
mov dword [ebp + 0x20], 0x484964
mov dword [ebp], ecx
mov dword [ebp + 0x24], esi
mov dword [ebp - 0xc], esi
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x3c], esi
call fcn.00470340
mov eax, dword [ebp + 0x30]
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 + 0x50], eax
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov ecx, dword [ebp + 0x50]
cmp eax, ecx
jbe 0x439d91
mov dword [ebp + 0x50], eax
mov ecx, eax
cmp ecx, esi
mov dword [ebp + 0x40], esi
je 0x439da2
mov ax, word [ecx]
mov word [ebp + 0x40], ax
mov word [ecx], si
push esi
push esi
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp + 0x50]
cmp eax, esi
je 0x439dc3
mov cx, word [ebp + 0x40]
mov word [eax], cx
mov eax, dword [ebp + 0x4c]
lea ecx, [ebp - 0x14]
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 - 0x14], esi
mov word [eax], si
call fcn.0042e7bd
add esp, 0x10
push 0x5c
push dword [ebp + 0x4c]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
or dword [ebp + 0x44], 0xffffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x4c]
push 0x5c
push esi
push dword [ebp + 0x4c]
add eax, 0x41a
mov word [eax], si
mov word [edi], si
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
mov dword [ebp + 0x50], eax
mov word [eax + 2], si
mov eax, dword [ebp + 0x4c]
add eax, 0x41a
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x209
push edi
push dword [ebp + 0x4c]
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 + 0x50]
mov word [eax], si
jne 0x439ed6
jmp 0x439e75
mov eax, dword [ebp + 0x50]
cmp eax, dword [ebp - 0x10]
jbe 0x43a267
push 0x5c
push esi
push dword [ebp + 0x4c]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x104
mov dword [ebp + 0x50], eax
mov word [eax + 2], si
mov eax, dword [ebp + 0x4c]
add eax, 0x41a
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push esi
push dword [ebp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0x209
push edi
push dword [ebp + 0x4c]
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 + 0x50]
mov word [eax], si
je 0x439e72
mov eax, dword [ebp + 0x4c]
add eax, 0x41a
push eax
push 0x48abe8
mov dword [ebp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x439efe
mov dword [ebp + 0x44], 1
jmp 0x439f62
mov eax, dword [ebp + 0x4c]
add eax, 0x41a
push eax
push 0x48abdc
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x439f1f
mov dword [ebp + 0x44], 2
jmp 0x439f62
mov eax, dword [ebp + 0x4c]
add eax, 0x41a
push eax
push str.exFAT
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x439f40
mov dword [ebp + 0x44], 3
jmp 0x439f62
mov eax, dword [ebp + 0x4c]
add eax, 0x41a
push eax
push 0x48abc4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x439f62
mov dword [ebp + 0x44], 4
mov dword [ebp + 0x48], esi
cmp word [edi], si
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x20], ebx
je 0x439f8b
mov ecx, eax
sub ecx, dword [ebp + 0x4c]
and ecx, 0xfffffffe
cmp ecx, 4
je 0x439f8b
push edi
mov dword [ebp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [edi + eax*2 - 2], si
jmp 0x439f96
sub eax, dword [ebp + 0x4c]
and eax, 0xfffffffe
cmp eax, 4
jne 0x439f99
mov dword [ebp + 0x48], esi
cmp dword [ebp + 0x44], 2
je 0x439fb7
cmp dword [ebp + 0x44], 1
je 0x439fb7
cmp dword [ebp + 0x44], 3
je 0x439fb7
mov eax, dword [ebp + 0x78]
cmp word [eax], si
je 0x43a087
mov edi, dword [ebp + 0x20]
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
push edi
lea ecx, [ebp + 0x3c]
call fcn.00404073
cmp dword [ebp + 0x48], esi
je 0x439fdb
mov word [edi], si
push 7
pop ecx
push esi
xor eax, eax
mov dword [ebp - 0x40], esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x24]
push eax
push 0x20
lea eax, [ebp - 0x40]
push eax
push esi
push esi
push 0x74004
push dword [ebp + 0x3c]
mov dword [ebp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp + 0x30]
mov ebx, 0x200
push ebx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x3c]
push esi
push edi
mov dword [ebp + 0x10], eax
call fcn.00470340
add esp, 0xc
push esi
lea eax, [ebp + 0x24]
push eax
push ebx
push edi
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp + 0x3c]
call fcn.00402abc
mov ebx, dword [ebp + 0x44]
cmp ebx, 3
jne 0x43a04e
mov eax, dword [edi + 0x58]
imul eax, dword [ebp + 0x2c]
jmp 0x43a082
cmp ebx, 2
je 0x43a058
cmp ebx, 1
jne 0x43a08a
cmp ebx, 2
movzx edx, word [edi + 0xe]
mov al, byte [edi + 0x10]
movzx ecx, word [edi + 0x11]
jne 0x43a06d
mov ebx, dword [edi + 0x24]
jmp 0x43a071
movzx ebx, word [edi + 0x16]
movzx eax, al
imul eax, ebx
add eax, edx
imul eax, dword [ebp + 0x2c]
shl ecx, 5
add eax, ecx
mov dword [ebp + 0x1c], eax
jmp 0x43a08a
mov edi, dword [ebp + 0x30]
push esi
push 0x80
push 3
push esi
push 7
push esi
push dword [ebp + 0x60]
lea ecx, [ebp + 0x3c]
call fcn.00404073
cmp dword [ebp + 0x3c], esi
jne 0x43a0ae
mov dword [ebp + 0x48], esi
jmp 0x43a267
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.0042dbdb
mov ebx, dword [ebp + 0x2c]
imul ebx, dword [ebp - 0xc]
xor eax, eax
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp + 0x44], ebx
call fcn.0042dbf5
push 0x100028
push esi
push edi
call fcn.00470340
mov edi, dword [ebp]
add esp, 0x24
push esi
lea eax, [ebp + 0x24]
push eax
push 0x100020
push edi
push 8
lea eax, [ebp - 0x20]
push eax
push 0x90073
push dword [ebp + 0x3c]
mov dword [edi], 0x10000
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43a146
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
mov dword [ebp + 0x48], eax
jne 0x43a267
push 0xffffffffffffffff
push 0xffffffffffffffda
push dword [ebp + 0x18]
call fcn.0042dbdb
add esp, 0xc
jmp 0x43a267
mov eax, dword [edi]
inc eax
imul eax, eax, 0x64
push eax
lea ecx, [ebp + 0x28]
call fcn.0042e20b
mov eax, dword [ebp + 0x28]
or ecx, 0xffffffff
cmp dword [edi], esi
mov dword [ebp + 0x50], eax
mov eax, ecx
jbe 0x43a188
mov ecx, dword [edi + 0x1c]
cmp ecx, esi
mov eax, dword [edi + 0x18]
jl 0x43a188
jg 0x43a174
cmp eax, esi
jb 0x43a188
push ecx
push eax
xor eax, eax
push eax
push ebx
call fcn.00471360
xor ecx, ecx
add eax, dword [ebp + 0x1c]
adc edx, ecx
mov ecx, edx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.0042dbdb
mov eax, dword [edi]
add esp, 0xc
cmp dword [ebp + 0x48], esi
je 0x43a19e
neg eax
cdq
push edx
push eax
push dword [ebp + 4]
call fcn.0042dbdb
lea eax, [edi + 8]
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x70]
add esp, 0xc
cmp word [eax], si
je 0x43a257
cmp dword [edi], esi
mov dword [ebp + 0x40], esi
jbe 0x43a262
lea ebx, [edi + 0x10]
xor eax, eax
push eax
push dword [ebp + 0x44]
push dword [ebx + 0xc]
push dword [ebx + 8]
call fcn.00471360
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebx]
push 0
mov dword [ebp - 4], eax
pop eax
adc edx, eax
mov eax, dword [ebp + 0x48]
sub ecx, dword [eax]
xor eax, eax
push eax
push dword [ebp + 0x44]
mov dword [ebp], edx
push esi
push ecx
call fcn.00471360
cmp edx, dword [ebp + 0x38]
jb 0x43a211
ja 0x43a20b
cmp eax, dword [ebp + 0x34]
jbe 0x43a211
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x38]
sub dword [ebp + 0x34], eax
push edx
push eax
push dword [ebp]
sbb dword [ebp + 0x38], edx
push dword [ebp - 4]
push str._I64u__I64u_r_n
push 0x64
push dword [ebp + 0x50]
call fcn.004833fb
add esp, 0x1c
push dword [ebp + 0x50]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x50]
inc dword [ebp + 0x40]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp + 0x48], ebx
add ebx, 0x10
cmp eax, dword [edi]
jb 0x43a1cc
cmp dword [edi], esi
jbe 0x43a262
mov eax, dword [ebp + 0x50]
mov word [eax - 4], si
mov eax, dword [edi]
mov dword [ebp + 0x48], eax
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x5c]
push dword [ebp + 0x64]
mov ecx, edi
call fcn.0042cbf7
push dword [ebp + 8]
mov ecx, edi
push dword [ebp + 0x68]
call fcn.0042cbf7
push dword [ebp - 8]
mov ecx, edi
push dword [ebp + 0x6c]
call fcn.0042cbf7
push dword [ebp + 4]
mov ecx, edi
push dword [ebp + 0x74]
call fcn.0042cbf7
push dword [ebp + 0x28]
mov ecx, edi
push dword [ebp + 0x70]
call fcn.0042cbf7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.0042dbdb
add esp, 0xc
push dword [ebp + 0x14]
mov ecx, edi
push dword [ebp + 0x78]
call fcn.0042cbf7
push dword [ebp + 0x20]
mov ecx, edi
push dword [ebp + 0x7c]
call fcn.0042cbf7
cmp dword [ebp + 0x48], 1
je 0x43a2eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x43a2e9
xor eax, eax
inc eax
mov esi, eax
lea ecx, [ebp + 0x3c]
call fcn.00402abc
lea ecx, [ebp + 0x30]
call fcn.00428a48
lea ecx, [ebp + 0x28]
call fcn.00428a48
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x54
leave
ret