Function at 0x5194bc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51987d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5a5258]
mov eax, dword [eax]
call fcn.00455fac
mov eax, dword [ebx + 0x194]
call fcn.004044b4
push eax
call sub.kernel32.dll_GetDriveTypeA
mov dword [ebp - 8], eax
mov esi, 1
mov dword [ebp - 0xc], 1
jmp 0x5197ed
cmp dword [ebp - 8], 3
je 0x51952e
cmp dword [ebp - 8], 4
jne 0x51953a
mov byte [ebx + 0x2bc], 0
jmp 0x51980e
cmp byte [ebx + 0x170], 0
je 0x51955b
push 1
mov ecx, 0x2b11
mov dl, 1
mov eax, dword [0x516c40]
call fcn.005191f8
call fcn.00403aa0
cmp dword [ebx + 0x1a0], 0
jge 0x519582
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x519894
mov edx, 0x2b19
mov eax, ebx
call fcn.00517f18
or dword [ebp - 0xc], 0x10
jmp 0x519716
cmp dword [ebp - 4], 0
je 0x5196d1
mov eax, dword [ebx + 0x178]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x17c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebx + 0x1e4]
test ecx, ecx
je 0x5195c8
mov eax, ecx
cdq
cmp edx, dword [ebx + 0x17c]
jne 0x5195bd
cmp eax, dword [ebx + 0x178]
jae 0x5195c8
jmp 0x5195bf
jge 0x5195c8
mov eax, ecx
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebx + 0x1a0]
mov dword [ebx + 0x1a4], eax
cmp dword [ebp - 0x14], 0
jne 0x5195e2
cmp dword [ebp - 0x18], 0
jbe 0x519644
jmp 0x5195e4
jle 0x519644
mov eax, dword [ebx + 0x1a8]
add eax, 4
add eax, dword [ebx + 0x1e0]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fild qword [ebp - 0x18]
fdivp st(1)
call fcn.00402d38
push edx
push eax
mov eax, dword [ebx + 0x1a4]
cdq
cmp edx, dword [esp + 4]
jne 0x51961b
cmp eax, dword [esp]
pop edx
pop eax
jae 0x519644
jmp 0x51961f
pop edx
pop eax
jge 0x519644
mov eax, dword [ebx + 0x1a8]
add eax, 4
add eax, dword [ebx + 0x1e0]
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x24]
fild qword [ebp - 0x18]
fdivp st(1)
call fcn.00402d38
mov dword [ebx + 0x1a4], eax
cmp dword [ebp - 0x14], 0
jne 0x519652
cmp dword [ebp - 0x18], 0
jbe 0x51969b
jmp 0x519654
jle 0x51969b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5198bc
mov edx, 0x2b1a
mov eax, ebx
call fcn.00517f18
mov eax, dword [ebp - 0x28]
mov edx, dword [ebx + 0x1a0]
inc edx
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x34], 0
mov edx, dword [ebx + 0x1a4]
inc edx
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x38]
mov ecx, 1
call fcn.0040b5c8
jmp 0x519716
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, 0x5198ec
mov edx, 0x2b26
mov eax, ebx
call fcn.00517f18
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x1a0]
inc edx
mov dword [ebp - 0x44], edx
mov byte [ebp - 0x40], 0
lea edx, [ebp - 0x44]
xor ecx, ecx
call fcn.0040b5c8
jmp 0x519716
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x5198bc
mov edx, 0x2b1a
mov eax, ebx
call fcn.00517f18
mov eax, dword [ebp - 0x48]
mov edx, dword [ebx + 0x1a0]
inc edx
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x34], 0
mov edx, dword [ebx + 0x1a4]
inc edx
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x38]
mov ecx, 1
call fcn.0040b5c8
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x519914
mov edx, 0x2b1b
mov eax, ebx
call fcn.00517f18
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebx + 0x194]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
lea edx, [ebp - 0x44]
xor ecx, ecx
pop eax
call fcn.0040b5c8
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x1c]
call fcn.004042f8
cmp word [ebx + 0x2c2], 0
je 0x5197b6
mov byte [ebp - 0x1d], 0
mov eax, dword [ebx + 0x1a4]
inc eax
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebx + 0x194]
call fcn.004044f8
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x1d]
push eax
mov ecx, dword [ebx + 0x1a0]
inc ecx
mov edx, ebx
mov eax, dword [ebx + 0x2c4]
call dword [ebx + 0x2c0]
cmp byte [ebp - 0x1d], 0
je 0x5197af
mov esi, 3
jmp 0x5197e6
mov esi, 1
jmp 0x5197e6
mov eax, dword [ebp - 0xc]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [0x5a5258]
mov eax, dword [eax]
call fcn.00455c7c
mov eax, dword [ebp - 0x58]
call fcn.004044b4
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004044b4
push eax
mov eax, dword [ebx + 0x3c]
push eax
call sub.user32.dll_MessageBoxA_1
mov esi, eax
mov byte [ebx + 0x2bc], 0
cmp esi, 1
jne 0x519801
mov eax, ebx
call fcn.00518f90
test al, al
je 0x519522
cmp byte [ebx + 0x2bc], 0
jne 0x519522
cmp esi, 1
je 0x51982b
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x516c40]
call fcn.005191f8
call fcn.00403aa0
test esi, esi
jne 0x519847
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x516c40]
call fcn.005191f8
call fcn.00403aa0
mov ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x519884
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404094
lea eax, [ebp - 0x3c]
call fcn.00404070
lea eax, [ebp - 0x28]
call fcn.00404070
lea eax, [ebp - 0x1c]
call fcn.00404070
ret