Function at 0x4df104
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4df10d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040685c
mov eax, dword [ebp - 8]
call fcn.0040685c
xor eax, eax
push ebp
push 0x4df4e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4df480
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4df170
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x3a0]
call fcn.004a27d4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
call fcn.0041122c
jmp 0x4df17b
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004068c8
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004decec
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.004068c8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004122e4
cmp dword [ebp - 0x10], 0
je 0x4df1d0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.004123e0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00417da8
mov eax, dword [ebp - 0x2c]
call fcn.00406900
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
je 0x4df1d4
xor eax, eax
jmp 0x4df1d6
mov al, 1
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4df213
push 0x40
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.004a27d4
mov eax, dword [ebp - 0x34]
call fcn.00406900
push eax
push 0x4df4f8
mov eax, ebx
call fcn.004ab300
push eax
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df48e
mov eax, dword [ebp - 0x10]
call fcn.00411ec0
test al, al
jne 0x4df227
mov eax, dword [ebp - 0x10]
call fcn.004d5d04
mov eax, dword [ebp - 0xc]
call fcn.004d4030
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4df264
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.00406900
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle_1
cmp esi, 0xffffffff
setne byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0
jne 0x4df29e
push 0x40
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.004a27d4
mov eax, dword [ebp - 0x38]
call fcn.00406900
push eax
push 0x4df520
mov eax, ebx
call fcn.004ab300
push eax
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df48e
cmp dword [ebp - 4], 0
je 0x4df2c9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
call fcn.004d4ec4
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.004123e0
mov edx, dword [ebp - 0x3c]
xor ecx, ecx
mov eax, ebx
call fcn.004e2ac0
jmp 0x4df30c
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.004e233c
mov edx, dword [ebp - 0x44]
xor ecx, ecx
mov eax, ebx
call fcn.004e2ac0
cmp dword [ebp - 0x14], 0
jne 0x4df30c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
call fcn.004d4ec4
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004123e0
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov eax, ebx
call fcn.004e2ac0
lea eax, [ebp - 0x50]
push eax
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004decec
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.004068c8
mov eax, dword [ebx + 0x3d0]
mov edx, dword [eax]
call dword [edx + 0xec]
sub eax, 1
jb 0x4df344
je 0x4df350
dec eax
je 0x4df35f
dec eax
je 0x4df36e
jmp 0x4df37b
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.004068c8
jmp 0x4df37b
lea eax, [ebp - 0x18]
mov edx, 0x4df54c
call fcn.004068c8
jmp 0x4df37b
lea eax, [ebp - 0x18]
mov edx, 0x4df564
call fcn.004068c8
jmp 0x4df37b
lea eax, [ebp - 0x18]
mov edx, 0x4df57c
call fcn.004068c8
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004db0b4
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4df3a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4df48e
mov dl, 1
mov eax, dword [0x4277e4]
call fcn.00433160
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4df46f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x3c8]
mov edx, dword [eax]
call dword [edx + 0xec]
push eax
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004e2928
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004decec
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x5c]
mov ecx, 1
mov eax, ebx
call fcn.004dea20
xor al, 1
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, 0x4df594
mov eax, ebx
call fcn.004e1d54
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x68]
xor edx, edx
mov eax, ebx
call fcn.004e21b8
lea eax, [ebp - 0x68]
mov edx, 0x4df5ac
call fcn.00406c98
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df476
mov eax, dword [ebp - 0x20]
call fcn.00404da0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df4ec
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.0040686c
lea eax, [ebp - 0x54]
mov edx, 7
call fcn.0040686c
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0040686c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040686c
lea eax, [ebp - 0x24]
call fcn.00406864
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040686c
ret