Function at 0x401c78
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 0x401e8f
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 0x42a438
push eax
mov ecx, dword [eax]
call dword [ecx]
mov esi, eax
test esi, esi
js 0x401e8f
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 0x401e8f
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x401d6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, edi
test eax, eax
cmovle esi, eax
test esi, esi
js 0x401e8f
push 0x5c
xor edi, edi
pop edx
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
test ebx, eax
je 0x401e53
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 0x401db4
cmp eax, 2
jne 0x401e50
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 0x401e50
xor edx, edx
lea ecx, [esp + 0x28]
push 1
inc edx
call fcn.0040eba3
cmp eax, 0x80070002
je 0x401df4
cmp eax, 0x80070003
jne 0x401df6
xor eax, eax
test eax, eax
js 0x401e50
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 0x401e52
pop ebx
cmp bx, word [esi]
jne 0x401e41
xor eax, eax
lea ecx, [esp + 0x28]
push eax
xor edx, edx
mov word [esi], ax
call fcn.0040eba3
cmp eax, 0x80070002
je 0x401e3b
cmp eax, 0x80070003
jne 0x401e3d
xor eax, eax
test eax, eax
js 0x401e4c
sub esi, 2
lea eax, [esp + 0x2e]
cmp eax, esi
jb 0x401e17
mov ebx, dword [esp + 0x20]
push 0x5c
pop edx
inc edi
cmp edi, 0x1a
jb 0x401d70
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 0x401e8f
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.00410fcf
cmp dword [esp + 0x14], 0
je 0x401ea0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401eb9
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 0x401ec7
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.00411690
mov esp, ebp
pop ebp
ret 8