Function at 0x40c8d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e417b
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x515718]
add eax, 0xfffffff0
mov dword [ebp - 0xf0], 0x515688
call fcn.004012e0
lea ebx, [eax + 0x10]
mov dword [ebp - 0xe4], ebx
lea eax, [ebp - 0xe4]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0040c700
cmp eax, esi
mov dword [ebp - 0xf8], eax
jne 0x40c969
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c95f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40cc13
cmp dword [0x5156e8], esi
jne 0x40c9e5
mov ecx, dword [0x515718]
push ecx
push 0x4f08f0
mov ecx, 0x5158b0
call fcn.00489840
push 0xc6
lea edx, [ebp - 0xde]
push esi
mov byte [ebp - 4], 1
push edx
mov dword [ebp - 0xf4], esi
mov word [ebp - 0xe0], si
call fcn.004be240
add esp, 0x14
lea eax, [ebp - 0xe0]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea esp, [esp]
mov edi, dword [ebp - 0xf4]
cmp word [ebp + edi*2 - 0xe0], 0
lea edi, [ebp + edi*2 - 0xe0]
jne 0x40ca50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xf8]
mov esi, 1
cmp eax, esi
jne 0x40cb7b
mov eax, dword [0x5157fc]
test eax, eax
je 0x40ca3d
lea edx, [ebp - 0x104]
push edx
push 0
push 0x4a
lea ecx, [ebp - 0xec]
push eax
mov dword [ebp - 0xec], 0x64
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x104], 0x2711
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x100], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xf0]
mov dword [eax + 8], esi
push 0x4f0948
jmp 0x40cbe1
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40cb6f
movzx ecx, word [edi]
mov esi, dword [ebx - 0xc]
test esi, esi
mov dword [ebp - 0xe8], ecx
jg 0x40ca7a
push 0x80070057
call fcn.00401350
cmp dword [ebx - 4], 1
jle 0x40ca95
mov edx, esi
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.004011a0
mov ebx, dword [ebp - 0xe4]
test esi, esi
mov cx, word [ebp - 0xe8]
mov word [ebx], cx
jl 0x40ca70
cmp esi, dword [ebx - 8]
jg 0x40ca70
lea edx, [ebp - 0xe4]
mov dword [ebx - 0xc], esi
push edx
mov word [ebx + esi*2], 0
call fcn.0040c700
test eax, eax
jne 0x40cb6f
movzx eax, word [edi]
mov esi, dword [ebp - 0xf0]
add esi, 0x90
mov dword [ebp - 0xe8], eax
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
test edi, edi
jg 0x40caed
push 0x80070057
call fcn.00401350
cmp dword [eax - 4], 1
jle 0x40cafc
mov ecx, edi
push ecx
push esi
call fcn.004011a0
test edi, edi
mov eax, dword [esi]
mov dx, word [ebp - 0xe8]
mov word [eax], dx
jl 0x40ca70
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40ca70
mov dword [eax - 0xc], edi
mov eax, dword [esi]
mov word [eax + edi*2], 0
mov ecx, dword [esi]
push ecx
push 0x4f091c
mov ecx, 0x5158b0
call fcn.00489840
lea eax, [ebx - 0x10]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40c953
add dword [ebp - 0xf4], 4
jmp 0x40c9c0
cmp eax, 2
jne 0x40cbee
mov eax, dword [0x5157fc]
test eax, eax
je 0x40cbcf
lea edx, [ebp - 0x104]
push edx
push 0
push 0x4a
lea ecx, [ebp - 0xec]
push eax
mov dword [ebp - 0xec], 0x64
mov dword [ebp - 0xe8], 3
mov dword [ebp - 0x104], 0x2711
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 0x100], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xf0]
mov dword [eax + 8], 3
push 0x4f0964
mov ecx, 0x5158b0
call fcn.00489840
add esp, 4
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b83ee
mov esp, ebp
pop ebp
ret