Function at 0x1000e5ac
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x798
mov dword [ebp - 0x798], ecx
mov dword [ebp - 0x624], 0
mov byte [ebp - 0x400], 0x67
lea eax, [ebp - 0x500]
push eax
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x500]
mov dword [ebp - 0x624], ecx
mov dword [ebp - 0x618], 0
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x628], 0
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x610], 0
push 0x100019a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x61c], eax
push 0x100019ac
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x508], eax
mov dword [ebp - 0x620], 1
jmp 0x1000e678
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x624]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x624], edx
mov eax, dword [ebp - 0x624]
movsx ecx, byte [eax]
test ecx, ecx
je 0x1000e8a6
push 0x104
push 0
lea edx, [ebp - 0x60c]
push edx
call fcn.100239a0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x60c]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x624]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
push 0x160
lea edx, [ebp - 0x78c]
push edx
push 0x80
mov eax, dword [ebp - 0x624]
push eax
call dword [ebp - 0x508]
lea ecx, [ebp - 0x67c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x794], eax
lea edx, [ebp - 0x60c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x790], eax
mov eax, dword [ebp - 0x624]
movsx ecx, byte [eax]
cmp ecx, 0x41
je 0x1000e7b0
mov edx, dword [ebp - 0x624]
movsx eax, byte [edx]
cmp eax, 0x42
je 0x1000e7b0
push 0
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x62c]
push edx
mov eax, dword [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x1000e7b0
push 0
push 0x400
mov ecx, dword [ebp - 0x614]
push ecx
mov edx, dword [ebp - 0x618]
push edx
call fcn.10024f80
push 0
push 0x400
push edx
push eax
call fcn.10024f80
mov dword [ebp - 0x504], eax
push 0
push 0x400
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [ebp - 0x62c]
push ecx
call fcn.10024f80
push 0
push 0x400
push edx
push eax
call fcn.10024f80
mov dword [ebp - 0x610], eax
jmp 0x1000e7c4
mov dword [ebp - 0x504], 0
mov dword [ebp - 0x610], 0
mov edx, dword [ebp - 0x620]
mov eax, dword [ebp - 0x624]
mov cl, byte [eax]
mov byte [ebp + edx - 0x400], cl
mov edx, dword [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp - 0x620]
mov byte [ebp + ecx - 0x3ff], al
push 4
lea edx, [ebp - 0x504]
push edx
mov eax, dword [ebp - 0x620]
lea ecx, [ebp + eax - 0x3fe]
push ecx
call fcn.10023a30
add esp, 0xc
push 4
lea edx, [ebp - 0x610]
push edx
mov eax, dword [ebp - 0x620]
lea ecx, [ebp + eax - 0x3fa]
push ecx
call fcn.10023a30
add esp, 0xc
mov edx, dword [ebp - 0x794]
push edx
lea eax, [ebp - 0x67c]
push eax
mov ecx, dword [ebp - 0x620]
lea edx, [ebp + ecx - 0x3f6]
push edx
call fcn.10023a30
add esp, 0xc
mov eax, dword [ebp - 0x790]
push eax
lea ecx, [ebp - 0x60c]
push ecx
mov edx, dword [ebp - 0x620]
lea eax, [ebp + edx - 0x400]
mov ecx, dword [ebp - 0x794]
lea edx, [eax + ecx + 0xa]
push edx
call fcn.10023a30
add esp, 0xc
mov eax, dword [ebp - 0x790]
mov ecx, dword [ebp - 0x794]
lea edx, [ecx + eax + 0xa]
mov eax, dword [ebp - 0x620]
add eax, edx
mov dword [ebp - 0x620], eax
jmp 0x1000e65b
mov ecx, dword [ebp - 0x61c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x30
call fcn.10023a17
add esp, 4
mov edx, dword [ebp - 0x620]
push edx
lea eax, [ebp - 0x400]
push eax
mov ecx, dword [ebp - 0x798]
call fcn.10015d9b
mov esp, ebp
pop ebp
ret