Function at 0x420185
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ec
mov eax, dword [0x51a448]
xor eax, esp
mov dword [esp + 0x1e8], eax
push ebx
push esi
push edi
push 0x1c0
lea eax, [esp + 0x34]
mov edi, ecx
push 0
push eax
call fcn.0049ef70
add esp, 0xc
mov dword [esp + 0x28], 0x5c3a41
push 0x14000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4204ba
mov edx, 0x400
mov dword [esp + 0x1bc], 1
lea esi, [eax + 0x104]
mov ecx, 0x800
mov dword [esp + 0x14], esi
xor eax, eax
add esi, edx
mov byte [esp + 0x70], al
mov dword [esp + 0x48], esi
xorps xmm0, xmm0
add esi, ecx
mov byte [esp + 0xb0], al
mov dword [esp + 0x4c], esi
add esi, ecx
mov dword [esp + 0x10], esi
add esi, 0x1000
mov ebx, esi
mov byte [esp + 0x130], al
add esi, edx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x18], esi
add esi, edx
mov dword [esp + 0x1c], esi
add esi, edx
mov dword [esp + 0x20], esi
add esi, edx
mov dword [esp + 0x24], esi
add esi, edx
mov dword [esp + 0x1d0], esi
add esi, ecx
mov dword [esp + 0x1b4], eax
mov dword [esp + 0x1b8], eax
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1cc], eax
lea eax, [esp + 0x1c0]
mov dword [esp + 0x1d4], esi
add esi, edx
push eax
push dword [edi + 0xc]
mov dword [esp + 0x1e0], esi
add esi, edx
movlpd qword [esp + 0x70], xmm0
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x4202b6
lea ecx, [esp + 0x1c0]
call fcn.0048dd30
mov ecx, dword [esp + 0x1c0]
lea edx, [esp + 0x1e4]
call fcn.0048de60
test eax, eax
je 0x4202f2
cmp dword [esp + 0x1e4], 0
je 0x4202f2
mov ecx, dword [esp + 0x1c0]
mov edx, esi
mov dword [esp + 0x1e8], edx
add esi, 0x4b0
call fcn.0048df20
call fcn.0040a6a4
mov edx, dword [esp + 0x10]
lea ecx, [edi + 0x128]
call fcn.0041f8a8
mov al, byte [ebx]
mov byte [esp + 0x28], al
mov eax, dword [edi + 0x1174]
mov dword [esp + 0x1b8], eax
xor eax, eax
push eax
push eax
push 0x400
push ebx
push 0xffffffffffffffff
push dword [esp + 0x24]
mov byte [ebx], al
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x420349
push 0x400
push dword [esp + 0x14]
push ebx
call fcn.004cb853
add esp, 0xc
lea eax, [edi + 0x1128]
test eax, eax
je 0x420365
cmp byte [eax], 0
je 0x420365
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x42037d
push dword [edi + 0x1170]
push str.K7_ID__08X
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esp + 0x18]
xor edx, edx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
mov byte [eax], dl
mov byte [ecx], dl
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.0041f348
mov eax, dword [esp + 0x28]
mov edx, eax
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [eax], 0
mov byte [ecx], 0
mov ecx, dword [esp + 0x24]
call fcn.0041f2c0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x64], eax
lea edx, [esp + 0x68]
lea eax, [esp + 0x1b4]
mov ecx, ebx
push eax
lea eax, [esp + 0x1b4]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0xbc]
push eax
lea eax, [esp + 0x80]
push eax
call fcn.0040c63c
mov eax, dword [esp + 0x1e4]
xor ecx, ecx
add esp, 0x14
mov byte [eax], cl
mov eax, dword [esp + 0x1d4]
mov byte [eax], cl
mov eax, dword [esp + 0x1d8]
mov byte [eax], cl
lea ecx, [esp + 0x70]
push dword [esp + 0x1d8]
mov edx, dword [esp + 0x1d4]
push dword [esp + 0x1d8]
call fcn.0041f10d
pop ecx
pop ecx
call fcn.0040cd9c
test eax, eax
je 0x42049e
mov edx, esi
mov dword [esp + 0x1ec], esi
mov ecx, ebx
call fcn.0040cdee
neg eax
sbb eax, eax
and dword [esp + 0x1ec], eax
lea ecx, [esp + 0x30]
call fcn.004238e1
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, edi
call fcn.0041e227
mov ecx, dword [esp + 0x1f4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.0049d307
mov esp, ebp
pop ebp
ret