Function at 0x40c160
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x448318
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, edi
call fcn.00403c10
push 0x4513e8
push 0x450da4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450da0
lea ecx, [esp + 0x18]
xor ebp, ebp
call fcn.0040b810
push 0x450da0
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], ebp
call fcn.0040b810
mov byte [esp + 0x40], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, 0x41
mov dword [esp + 0x18], 0x1a
mov edi, edi
push esi
lea eax, [esp + 0x18]
push str._c:_
push eax
call fcn.00402790
push esi
lea ecx, [esp + 0x20]
push 0x450d90
push ecx
call fcn.00402790
mov edx, dword [esp + 0x2c]
add esp, 0x18
push edx
call ebx
cmp eax, 1
je 0x40c286
cmp eax, 4
je 0x40c286
cmp eax, 5
je 0x40c286
cmp eax, 6
je 0x40c286
cmp eax, 2
je 0x40c286
sub eax, 2
je 0x40c286
sub eax, 1
jne 0x40c286
add ebp, 1
cmp ebp, 2
jne 0x40c252
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0x94
push 0x4526a0
push ecx
call fcn.00402790
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
mov ecx, edi
call fcn.00403be0
push 0x450d4c
mov ecx, edi
call fcn.00403be0
mov eax, dword [esp + 0x14]
push eax
push 0x1e7
push str.xxxx
push str.__s__d___strDrive_:__s
call fcn.00443b10
add esp, 0x10
add esi, 1
sub dword [esp + 0x18], 1
jne 0x40c1e0
xor esi, esi
cmp ebp, esi
jne 0x40c35d
push 0x1f2
push str.xxxx
push str.__s__d___No_Drive__
call fcn.00443b10
lea ecx, [esp + 0x28]
push str.NoDrive
push ecx
call fcn.00443fd0
add esp, 0x14
push 0xffffffffffffffff
push esi
push eax
mov ecx, edi
mov byte [esp + 0x4c], 2
call fcn.004043d0
cmp dword [esp + 0x34], 8
jb 0x40c2e8
mov edx, dword [esp + 0x20]
push edx
call fcn.00411d3b
add esp, 4
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c31e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c382
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4