Function at 0x416440
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471160
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49ab20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4858e4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00405330
mov byte [ebp - 4], 2
call fcn.00401b40
or edi, 0xffffffff
mov dword [ebp - 0x18], eax
cmp eax, edi
jne 0x416509
push str.__GetIdleDeviceIndex_Error_
call fcn.00414dc0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4164c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4164e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x416502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x416752
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov bl, 0x19
mov edx, 1
mov cl, bl
shl edx, cl
test esi, edx
jne 0x416538
movzx ax, bl
add ax, 0x41
movzx ecx, ax
push ecx
call fcn.00414880
add esp, 4
test eax, eax
jne 0x416541
dec bl
cmp bl, 1
ja 0x416513
jmp 0x41655e
movzx esi, bl
add esi, 0x41
push esi
lea edx, [ebp - 0x14]
push 0x477f1c
push edx
call fcn.004069a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], esi
cmp bl, 1
jne 0x41656d
push 0x477ef8
jmp 0x416497
mov eax, dword [ebp + 0x10]
mov edi, eax
test eax, eax
jne 0x41657a
xor ebx, ebx
jmp 0x4165bb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4165b7
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004522f0
mov esi, esp
test esi, esi
je 0x4165b7
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4165b9
xor eax, eax
mov ebx, eax
mov eax, dword [ebp - 0x14]
push 1
push 1
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
push eax
call fcn.00404440
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push ebx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
mov byte [ebp - 4], 3
call fcn.00404440
mov ecx, dword [ebp - 0x18]
add eax, 0x10
add esp, 4
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 2
call fcn.00415ad0
add esp, 0x18
test eax, eax
jne 0x416682
mov edx, dword [ebp + 0xc]
push edx
push str.__MountImage_Error_File__s__
call fcn.00414dc0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416663
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4164f6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edi, 0x14
push 0xc8
call esi
push 0x477ecc
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00404ed0
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push 0x2005
push 4
call ebx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4166dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub edi, 1
jne 0x416693
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416727
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41674d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004522e0
mov esp, ebp
pop ebp
ret