Function at 0x401c62
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42e058]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea edx, [esp + 0x18]
xor ebx, ebx
push edx
push dword [ebp + 0xc]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, eax
mov eax, 0x80070006
cmp esi, 1
cmove esi, eax
test esi, esi
js 0x401e79
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x42a488
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x401e79
mov eax, dword [edi + 0x20]
push ebx
push dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x10]
lea eax, [edi + 0x14]
push 2
push eax
push 1
mov edx, dword [ecx]
push ecx
call dword [edx + 0x78]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx esi, ax
mov edi, 0x80070000
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x401e79
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x401d55
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x401e79
push 0x5c
xor edi, edi
pop edx
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
test ebx, eax
je 0x401e3d
lea eax, [edi + 0x41]
mov word [esp + 0x2c], dx
mov word [esp + 0x28], ax
push 0x3a
pop eax
mov word [esp + 0x2a], ax
xor eax, eax
mov word [esp + 0x2e], ax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x401d9e
cmp eax, 2
jne 0x401e3a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 0x104
push eax
mov edx, dword [ecx]
lea eax, [edi + 1]
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
js 0x401e3a
xor edx, edx
lea ecx, [esp + 0x28]
push 1
inc edx
call fcn.0040ec88
cmp eax, 0x80070002
je 0x401dde
cmp eax, 0x80070003
jne 0x401de0
xor eax, eax
test eax, eax
js 0x401e3a
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + 0x28]
push 0x5c
lea esi, [esi + eax*2]
lea eax, [esp + 0x32]
cmp eax, esi
jae 0x401e3c
pop ebx
cmp bx, word [esi]
jne 0x401e2b
xor eax, eax
lea ecx, [esp + 0x28]
push eax
xor edx, edx
mov word [esi], ax
call fcn.0040ec88
cmp eax, 0x80070002
je 0x401e25
cmp eax, 0x80070003
jne 0x401e27
xor eax, eax
test eax, eax
js 0x401e36
sub esi, 2
lea eax, [esp + 0x2e]
cmp eax, esi
jb 0x401e01
mov ebx, dword [esp + 0x20]
push 0x5c
pop edx
inc edi
cmp edi, 0x1a
jb 0x401d5a
mov eax, dword [esp + 0x10]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov esi, eax
test esi, esi
js 0x401e79
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x7c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 0x14], 0
call fcn.00410ed7
cmp dword [esp + 0x14], 0
je 0x401e8a
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401ea3
mov eax, dword [ecx + 4]
add ecx, 4
mov eax, dword [eax + 4]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x401eb1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004114dd
mov esp, ebp
pop ebp
ret 8