Function at 0x4044f0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
mov eax, dword [esp + 0x260]
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
xor edi, edi
mov ecx, dword [esp + 0x25c]
push 2
push eax
xor ebx, ebx
push edi
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x1c], ebx
call fcn.00403520
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x404782
lea edx, [esp + 0x34]
push ebp
push edx
push edi
push esi
mov dword [esp + 0x44], 0x1c
mov dword [esp + 0x24], edi
call fcn.00403570
add esp, 0xc
test eax, eax
je 0x404768
push 0xf003f
push 2
push 0
lea eax, [esp + 0x44]
push 1
push eax
push esi
call fcn.004037c0
mov ebx, eax
add esp, 0x18
cmp ebx, 0xffffffff
je 0x404646
lea ecx, [esp + 0x14]
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push 0
push str.DriverVersion
push ebx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40463f
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004049d0
mov ebp, eax
mov eax, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 0x34], edx
or ecx, eax
je 0x4045d0
cmp edx, eax
jb 0x40463f
ja 0x4045d0
cmp ebp, edi
jbe 0x40463f
lea edx, [esp + 0x14]
lea eax, [esp + 0x54]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
push 0
push str.InfPath
push ebx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40463f
mov al, byte [esp + 0x54]
test al, al
je 0x40463f
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
mov edi, ebp
mov dword [esp + 0x2c], ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
inc eax
push edx
push eax
push esi
mov dword [esp + 0x24], eax
call fcn.00403570
add esp, 0xc
test eax, eax
jne 0x404557
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404768
lea eax, [esp + 0x54]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ecx, 0xffffffff
mov edi, 0x40d040
xor eax, eax
lea ebx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x158]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x40d45c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40d040
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x270]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x270]
push 0
push 0
push ecx
mov edx, dword [esp + 0x278]
mov eax, dword [esp + 0x274]
push edx
push 0
lea ecx, [esp + 0x6c]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.00404790
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push esi
call fcn.00403460
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24c
ret 0x14
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x24c
ret 0x14