Function at 0x4128e0
Capabilities:
Get disk information
Get disk information via ioctl
Get disk size

Disassembly:
sub esp, 0x170
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x174]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp eax, ebx
je 0x41295b
lea edi, [esp + 0x70]
mov ecx, eax
sub edi, eax
nop
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
cmp dl, bl
jne 0x412910
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x412920
push ebx
push 0x80
push 3
push ebx
sub eax, edx
push 3
mov byte [esp + eax + 0x83], bl
push 0xc0000000
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x412962
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x412b4a
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x20
lea edx, [esp + 0x54]
push edx
push ebx
push ebx
push 0x74004
push ebp
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x4129f0
push 0x320
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 2], bl
call fcn.0044296c
add esp, 4
push ebx
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x320
push edi
push ebx
push ebx
push 0x560000
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4129e1
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x14]
mov dword [esi + 0x2c], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x34], ecx
cmp edi, ebx
je 0x412a13
push edi
call fcn.00442977
add esp, 4
jmp 0x412a13
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x30], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x34], eax
mov al, byte [esp + 0x60]
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
mov byte [esi + 2], al
push 0x40
lea edi, [esi + 0x38]
push edi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x28]
push ecx
push 0x100
lea edx, [esi + 0x178]
lea eax, [esi + 0x78]
push edx
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x412a94
push str.NTFS
push edi
call fcn.00450f68
add esp, 8
test eax, eax
jne 0x412a66
mov byte [esi + 2], 7
jmp 0x412a94
push str.FAT32
push edi
call fcn.00450f68
add esp, 8
test eax, eax
jne 0x412a7e
mov byte [esi + 2], 0xb
jmp 0x412a94
push 0x4b6dd0
push edi
call fcn.00450f68
add esp, 8
test eax, eax
jne 0x412a94
mov byte [esi + 2], 6
push ebx
lea eax, [esp + 0x20]
push eax
push 0xc
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push 0x2d1080
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x412ac6
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
or eax, 0xffffffff
jmp 0x412acf
or eax, 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], eax
cmp dword [esp + 0x14], ebx
jne 0x412adf
cmp dword [esi + 4], eax
je 0x412adf
call fcn.00412b70
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x70]
push eax
lea eax, [esi + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x412b1a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 0x14], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
jmp 0x412b2c
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
sbb edx, dword [esi + 0x24]
push ebp
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e200
add esp, 0x170
ret 4