Function at 0x4162c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x416567
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x28], 0
mov eax, dword [ebp - 0xc]
add eax, 8
mov edx, 0x416580
call fcn.00404420
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x41634d
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x44]
mov ecx, 0x416598
call fcn.004046e8
mov eax, dword [ebp - 0x44]
call fcn.0040b33c
test al, al
je 0x41634d
mov byte [ebp - 0x1d], 1
jmp 0x41653f
mov dl, 1
mov eax, dword [0x406b54]
call fcn.00407d08
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dl, 1
call fcn.00414d54
xor eax, eax
push ebp
push 0x416501
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4164f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00415d6c
cmp dword [ebp - 0x30], 0
je 0x416419
cmp dword [ebp - 0x34], 0
je 0x416400
lea eax, [ebp - 0x48]
mov ecx, 0x416598
mov edx, dword [ebp - 0x34]
call fcn.004046e8
mov eax, dword [ebp - 0x48]
xor edx, edx
call fcn.00414818
lea eax, [ebp - 0x4c]
mov ecx, 0x416598
mov edx, dword [ebp - 0x34]
call fcn.004046e8
mov eax, dword [ebp - 0x4c]
call fcn.0040b33c
test al, al
je 0x4164b5
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [ebp - 0x34]
call fcn.00404420
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.004043cc
jmp 0x4164b5
push ebp
mov eax, 0x7530
call fcn.00416108
pop ecx
test al, al
je 0x4164bf
jmp 0x4164b5
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
dec eax
test eax, eax
jl 0x41649f
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
call fcn.00407d6c
mov eax, dword [ebp - 0x2c]
call fcn.00414e58
test al, al
je 0x416497
mov eax, dword [ebp - 0x2c]
call fcn.0040489c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x416497
lea eax, [ebp - 0x50]
mov ecx, 0x416598
mov edx, dword [ebp - 0x2c]
call fcn.004046e8
mov eax, dword [ebp - 0x50]
call fcn.0040b33c
test al, al
je 0x416497
mov eax, dword [ebp - 0xc]
add eax, 4
mov edx, dword [ebp - 0x2c]
call fcn.00404420
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.004043cc
jmp 0x41649f
inc dword [ebp - 0x24]
dec dword [ebp - 0x38]
jne 0x41642f
cmp byte [ebp - 0x1d], 0
jne 0x4164b5
push ebp
mov eax, 0x2710
call fcn.00416108
pop ecx
test al, al
je 0x4164bf
cmp byte [ebp - 0x1d], 0
je 0x41638a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4164f7
cmp byte [ebp - 0x15], 0
je 0x4164ef
mov eax, dword [ebp - 0xc]
cmp word [eax + 0x22], 0
je 0x4164ef
push 0x4165b0
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [ebx + 0x24]
call dword [ebx + 0x20]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41656e
lea eax, [ebp - 0x50]
mov edx, 5
call fcn.004043f0
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004043f0
ret