Function at 0x420150
Capabilities:
Get common file path
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x458485
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420528
mov eax, dword [0x471df4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x27c], 0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x284]
mov byte [esp + 0x27c], 1
mov eax, dword [ecx + 0xc]
cmp eax, 1
jne 0x42044c
mov ecx, dword [ecx + 4]
add ecx, 8
push ecx
lea ecx, [esp + 0x20]
call fcn.0044a4c1
mov eax, dword [0x471df4]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x170]
mov bl, 2
push 0x104
push ecx
mov byte [esp + 0x284], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call fcn.0044a4c1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42043b
lea edx, [esp + 0x6c]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x420430
push 0x46a404
lea ecx, [esp + 0x18]
call fcn.0044a442
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x288], 3
call fcn.0044a5b7
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x288], 4
call fcn.0044a61d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 5
call fcn.0044a4c1
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 4
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 3
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push 0x104
push eax
push str.Driver
push ecx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x420430
push str.SystemCurrentControlSetControlClass_
lea ecx, [esp + 0x1c]
call fcn.0044a442
lea edx, [esp + 0x6c]
mov byte [esp + 0x27c], 6
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044a61d
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 7
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 6
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], bl
call fcn.0044a3d4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
push 0x104
push ecx
push str.InfPath
push edx
push 0x80000002
call fcn.00430370
add esp, 0x14
test eax, eax
jne 0x420430
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x24]
push eax
call fcn.0044a442
mov esi, eax
push str.INF_
lea ecx, [esp + 0x30]
mov byte [esp + 0x280], 8
call fcn.0044a442
mov edi, eax
lea ecx, [esp + 0x170]
mov byte [esp + 0x27c], 9
push ecx
lea ecx, [esp + 0x2c]
call fcn.0044a442
push edi
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x288], 0xa
call fcn.0044a5b7
push esi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x284], 0xb
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 0xc
call fcn.0044a4c1
lea ecx, [esp + 0x14]
mov byte [esp + 0x27c], 0xb
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x27c], 0xa
call fcn.0044a3d4
lea ecx, [esp + 0x28]
mov byte [esp + 0x27c], 9
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x27c], 8
call fcn.0044a3d4
lea ecx, [esp + 0x24]
mov byte [esp + 0x27c], bl
call fcn.0044a3d4
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x27c], 1
call fcn.0044a3d4
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 8]
test eax, eax
je 0x4204fc
push 0xa
lea ecx, [esp + 0x54]
call fcn.00449a9b
mov bl, 0xd
push 0xa
lea ecx, [esp + 0x38]
mov byte [esp + 0x280], bl
call fcn.00449a9b
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
push eax
mov byte [esp + 0x280], 0xe
call fcn.00449c44
lea ecx, [esp + 0x34]
lea edx, [esp + 0x50]
push ecx
push edx
push 0
lea ecx, [ebp + 0x70]
call fcn.00419e70
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
test eax, eax
jbe 0x4204db
mov esi, eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401bb0
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0044a149
mov ecx, ebp
call fcn.0041ffc0
dec esi
jne 0x4204b6
lea ecx, [esp + 0x34]
mov byte [esp + 0x27c], bl
call fcn.00449b0f
lea ecx, [esp + 0x50]
mov byte [esp + 0x27c], 1
call fcn.00449b0f
lea ecx, [esp + 0x20]
mov dword [ebp], 1
mov byte [esp + 0x27c], 0
call fcn.0044a3d4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x27c], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x270
ret 4