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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc20
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x180]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
cmp word [ebp + 0x16], 0
jne 0x49326f
cmp dword [ebp + 0xc], 0
jne 0x49326f
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
jmp 0x493474
cmp dword [ebp + 0xc], 0
je 0x493282
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.00492c50
add esp, 8
mov dword [ebp - 0x20], 1
xor eax, eax
mov ebx, 0x104
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x160
mov eax, dword [ebp - 0x24]
push eax
call fcn.0049b6d4
pop ecx
inc ebx
push ebx
call fcn.0049b898
pop ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
push ebx
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
add eax, dword [ebp - 0x20]
cmp ebx, eax
jb 0x49329a
mov ebx, dword [ebp - 0x24]
jmp 0x493456
push ebx
call sub.KERNEL32.DLL_GetDriveTypeA
mov edx, eax
add edx, 0xfffffffe
sub edx, 5
jb 0x4932dd
jmp 0x49344d
mov dword [edi], eax
xor ecx, ecx
mov dword [edi + 4], ecx
xor edx, edx
mov dword [edi + 8], edx
xor ecx, ecx
mov dword [edi + 0xc], ecx
xor edx, edx
mov dword [edi + 0x10], edx
xor ecx, ecx
mov dword [edi + 0x14], ecx
xor edx, edx
mov dword [edi + 0x18], edx
xor ecx, ecx
mov dword [edi + 0x1c], ecx
xor edx, edx
mov dword [edi + 0x20], edx
xor ecx, ecx
mov dword [edi + 0x24], ecx
xor edx, edx
mov dword [edi + 0x28], edx
mov cl, byte [ebx]
mov byte [edi + 0x2c], cl
mov byte [edi + 0x2d], 0x3a
mov byte [edi + 0x2e], 0
cmp eax, 2
je 0x4933a0
lea eax, [edi + 0x130]
push 0xe
push eax
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x3e0]
push 0xff
push eax
push ebx
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x4933a0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea eax, [ebp - 8]
push eax
push ebx
call sub.KERNEL32.DLL_GetDiskFreeSpaceExA
mov edx, dword [ebp - 0xc]
mov dword [edi + 0x1c], edx
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x20], ecx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], eax
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x28], edx
push ebx
push esi
call fcn.00493114
add esp, 8
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0x10]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [esi]
push edx
call fcn.00413004
add esp, 0xc
add dword [ebp - 0x40], eax
adc dword [ebp - 0x3c], edx
jmp 0x4933a4
mov byte [ebp - 0x35], 0
mov byte [ebp - 0x2d4], 0
mov byte [ebp - 0x1d0], 0
push 0x600
lea eax, [ebp - 0x2e0]
mov ecx, dword [ebp - 0x1c]
push ecx
push eax
push 0
push ebx
mov edx, dword [esi + 4]
push edx
call fcn.004a8af0
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x4933f6
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [ebp - 0x2dc]
jle 0x4933eb
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
jmp 0x4933f1
mov ecx, dword [ebp - 0x2dc]
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov dl, byte [ebp - 0x35]
lea ecx, [ebp - 0x2d4]
push edx
lea edx, [ebp - 0x1d0]
mov eax, dword [ebp - 0x2dc]
push eax
push edi
push edx
push ecx
push 0
push esi
call fcn.00492968
add esp, 0x1c
mov dword [ebp - 0x34], eax
cmp word [ebp + 0x16], 0
je 0x493435
mov eax, dword [ebp - 0x34]
push eax
push 0
mov edx, dword [ebp + 0x18]
push edx
call dword [ebp + 0x14]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x49344d
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00412a1c
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_lstrlenA
inc eax
add ebx, eax
push ebx
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jg 0x4932c8
mov edx, dword [ebp - 0x24]
push edx
call fcn.0049b6d4
pop ecx
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret