Function at 0x416a20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x90], eax
lea ebx, [ebp - 0x8c]
mov eax, 0x537bbc
call fcn.00524684
mov word [ebx + 0x10], 8
xor edx, edx
mov dword [ebp - 4], edx
inc dword [ebx + 0x1c]
mov word [ebx + 0x10], 0x14
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 8]
mov word [ebx + 0x10], 0x20
mov edx, edi
call fcn.0052f020
inc dword [ebx + 0x1c]
mov eax, dword [eax]
call fcn.004a3d64
xor edx, edx
mov dl, al
lea eax, [ebp - 8]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebx + 0x1c]
call fcn.0052f334
pop ecx
test cl, cl
je 0x416aab
mov word [ebx + 0x10], 0x14
jmp 0x416f77
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
sub eax, 2
je 0x416b68
dec eax
je 0x416ad1
dec eax
je 0x416b1d
jmp 0x416bb3
xor edx, edx
xor eax, eax
mov dword [ebp - 0x9c], edx
lea edx, [ebp - 0xc]
mov byte [ebp - 0x95], 0
mov word [ebx + 0x10], 0x2c
mov cl, byte [edi]
push ecx
mov dword [ebp - 0xc], eax
push edx
inc dword [ebx + 0x1c]
call fcn.00415dbc
add esp, 8
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0052f334
jmp 0x416bbe
mov dword [ebp - 0x9c], 2
mov byte [ebp - 0x95], 1
mov word [ebx + 0x10], 0x38
mov cl, byte [edi]
push ecx
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
push edx
inc dword [ebx + 0x1c]
call fcn.00416038
add esp, 8
lea edx, [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0052f334
jmp 0x416bbe
mov dword [ebp - 0x9c], 4
mov byte [ebp - 0x95], 0
mov word [ebx + 0x10], 0x44
mov cl, byte [edi]
push ecx
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
push edx
inc dword [ebx + 0x1c]
call fcn.00415dbc
add esp, 8
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0052f334
jmp 0x416bbe
mov word [ebx + 0x10], 0x14
jmp 0x416f77
push 0xc
call fcn.00523568
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x416c08
mov word [ebx + 0x10], 0x5c
mov esi, dword [ebp - 0x18]
add esi, 4
xor eax, eax
mov dword [esi], eax
inc dword [ebx + 0x1c]
mov edx, dword [ebp - 0x18]
add edx, 8
mov dword [ebp - 0xa4], edx
mov ecx, dword [ebp - 0xa4]
xor eax, eax
mov dword [ecx], eax
inc dword [ebx + 0x1c]
add dword [ebx + 0x1c], 0xfffffffe
mov word [ebx + 0x10], 0x50
mov edx, dword [ebp - 0x18]
jmp 0x416c0b
mov edx, dword [ebp - 0x18]
mov word [ebx + 0x10], 0x68
mov esi, edx
mov edx, 0x536faa
lea eax, [ebp - 0x20]
call fcn.0052f020
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [0x55ad0c]
push ecx
cmp byte [eax], 0
lea eax, [ebp - 0x1c]
sete dl
and edx, 1
add edx, dword [ebp - 0x9c]
mov edx, dword [edx*4 + 0x536f08]
call fcn.0052f020
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
inc dword [ebx + 0x1c]
pop edx
call fcn.0052f38c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov dl, byte [edi]
call fcn.0052f164
mov edx, eax
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x2c]
inc dword [ebx + 0x1c]
pop eax
call fcn.0052f38c
lea edx, [ebp - 0x2c]
push edx
mov edx, 0x536fb2
lea eax, [ebp - 0x30]
call fcn.0052f020
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x34], eax
lea edx, [ebp - 0x30]
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x34]
pop eax
call fcn.0052f38c
lea edx, [ebp - 0x34]
lea eax, [esi + 4]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0052f334
mov word [ebx + 0x10], 0x74
mov edx, 0x536fb5
lea eax, [ebp - 0x3c]
call fcn.0052f020
inc dword [ebx + 0x1c]
lea ecx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
mov dl, byte [edi]
call fcn.0052f164
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x40]
inc dword [ebx + 0x1c]
pop edx
call fcn.0052f38c
lea edx, [ebp - 0x40]
lea eax, [esi + 8]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0052f334
cmp dword [ebp - 4], 0
je 0x416da6
mov ecx, dword [ebp - 4]
mov eax, dword [ecx - 4]
jmp 0x416da8
xor eax, eax
test eax, eax
je 0x416eaa
mov word [ebx + 0x10], 0x80
mov edx, 0x536fb7
lea eax, [ebp - 0x44]
call fcn.0052f020
inc dword [ebx + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x48]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x44]
lea eax, [esi + 8]
call fcn.0052f38c
lea eax, [ebp - 0x48]
xor edx, edx
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x4c]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
call fcn.0052f38c
lea edx, [ebp - 0x4c]
lea eax, [esi + 8]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0052f334
mov word [ebx + 0x10], 0x8c
mov edx, 0x536fb9
lea eax, [ebp - 0x50]
call fcn.0052f020
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [esi + 4]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x54]
call fcn.0052f38c
lea eax, [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x58]
inc dword [ebx + 0x1c]
lea edx, [ebp - 4]
call fcn.0052f38c
lea edx, [ebp - 0x58]
lea eax, [esi + 4]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0052f334
mov cl, byte [ebp - 0x95]
mov byte [esi], cl
cmp dword [ebp - 0x94], 4
je 0x416f60
mov word [ebx + 0x10], 0x98
xor eax, eax
lea edx, [ebp - 0x64]
mov dword [ebp - 0x64], eax
mov eax, edi
inc dword [ebx + 0x1c]
call fcn.00415678
lea edx, [ebp - 0x64]
push edx
mov edx, 0x536fbb
lea eax, [ebp - 0x5c]
call fcn.0052f020
inc dword [ebx + 0x1c]
xor eax, eax
mov dword [ebp - 0x60], eax
lea eax, [esi + 4]
inc dword [ebx + 0x1c]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x60]
call fcn.0052f38c
lea eax, [ebp - 0x60]
xor edx, edx
mov dword [ebp - 0x68], edx
lea ecx, [ebp - 0x68]
inc dword [ebx + 0x1c]
pop edx
call fcn.0052f38c
lea edx, [ebp - 0x68]
lea eax, [esi + 4]
call fcn.0052f364
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.0052f334
dec dword [ebx + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0052f334
mov eax, dword [ebp - 0x90]
add eax, 0x23c
mov eax, dword [eax]
mov ecx, esi
mov edx, dword [esi + 8]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov eax, dword [ebp - 0xa0]
push eax
call sub.KERNEL32.DLL_SetErrorMode
dec dword [ebx + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0052f334
mov ecx, dword [ebx]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret