Function at 0x401c39
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42e05c]
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 ecx, dword [edi + 0x1c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov esi, eax
mov eax, 0x80070006
cmp esi, 1
cmove esi, eax
test esi, esi
js 0x401e52
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x42a488
push ecx
mov eax, dword [ecx]
call dword [eax]
mov esi, eax
test esi, esi
js 0x401e52
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 0x401e52
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x401d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x401e52
push 0x5c
xor edi, edi
pop edx
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
test ebx, eax
je 0x401e16
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 0x401d75
cmp eax, 2
jne 0x401e13
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], 0x104
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [edi + 1]
push eax
push edx
call ecx
test eax, eax
js 0x401e13
xor edx, edx
lea ecx, [esp + 0x28]
push 1
inc edx
call fcn.0040e9b5
cmp eax, 0x80070002
je 0x401db7
cmp eax, 0x80070003
jne 0x401db9
xor eax, eax
test eax, eax
js 0x401e13
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 0x401e15
pop ebx
cmp bx, word [esi]
jne 0x401e04
xor eax, eax
lea ecx, [esp + 0x28]
push eax
xor edx, edx
mov word [esi], ax
call fcn.0040e9b5
cmp eax, 0x80070002
je 0x401dfe
cmp eax, 0x80070003
jne 0x401e00
xor eax, eax
test eax, eax
js 0x401e0f
sub esi, 2
lea eax, [esp + 0x2e]
cmp eax, esi
jb 0x401dda
mov ebx, dword [esp + 0x20]
push 0x5c
pop edx
inc edi
cmp edi, 0x1a
jb 0x401d31
mov ecx, dword [esp + 0x10]
push dword [esp + 0x14]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov esi, eax
test esi, esi
js 0x401e52
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.00410d36
cmp dword [esp + 0x14], 0
je 0x401e63
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401e7c
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 0x401e8a
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.00411433
mov esp, ebp
pop ebp
ret 8