Function at 0x414180
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x4beecc
lea eax, [ebp - 0x14]
push eax
mov esi, 3
call fcn.00419c10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc]
cmp cx, 0x5a
ja 0x41448b
push 0x4d9f40
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x18], 0x4d9f40
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x4141f8.11
jmp dword [eax*4 + 0x4144c0]
push 9
push str.Removable
jmp 0x41435f
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
call fcn.00441840
mov edx, dword [eax]
mov edx, dword [edx + 0x34]
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call edx
mov dword [ebp - 4], 1
jmp 0x414257
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push 0xa
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041a300
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
push str.Fixed__tFree_space_
push ecx
mov byte [ebp - 4], 4
call fcn.00401920
add esp, 0xc
push 0x4bf8a4
push eax
lea edx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 5
call fcn.00406fd0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x4d9f40
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4142d7
mov ebx, dword [0x4d9f48]
mov edi, 0x4d9f40
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4142fd
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41431c
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg case.0x4141f8.11
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
jmp case.0x4141f8.11
push 0x16
push str.Remote__network__drive
jmp 0x41435f
push 6
push str.CD_ROM
jmp 0x41435f
push 8
push str.RAM_disk
jmp 0x41435f
push 0x23
push str.The_drive_type_cannot_be_determined
lea ecx, [ebp - 0x18]
call fcn.0041b210
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0
je 0x4143e7
push 0x4b8924
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00406fd0
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp - 0x2c]
mov bl, 7
push edx
mov byte [ebp - 4], bl
call fcn.00402410
add esp, 0xc
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 8
call fcn.00401fa0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x2c]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4143c8
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4143e7
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov eax, dword [ebp - 0x14]
mov cx, word [eax + 0xc]
mov esi, dword [eax + 4]
inc cx
movzx edi, cx
lea ecx, [esi + esi + 0xe]
cmp dword [eax + 8], ecx
jge 0x41442f
cmp ecx, 0x80
mov ecx, esi
jg 0x41440f
lea edx, [ebp - 0x14]
push edx
jmp 0x41443c
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
cmp esi, eax
jle 0x414427
mov eax, esi
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
jmp 0x41443c
mov edx, dword [eax]
cmp edx, 1
je 0x414441
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00419f20
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov word [edx + esi*2 + 0xc], cx
mov eax, dword [ebp - 0x14]
mov word [eax + 0xc], di
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], esi
mov eax, dword [ebp - 0x14]
xor edx, edx
mov word [eax + esi*2 + 0xc], dx
mov byte [ebp - 4], dl
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4141bb
mov ebx, dword [esi + 8]
mov edi, esi
mov esi, 0x4da170
call fcn.00432310
jmp 0x4141bb
push eax
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4144ac
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4