Function at 0x40f070
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4452d8
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x45ba98]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
push edi
mov eax, dword [0x45ba98]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [edi + 0x20]
push 0x20000
push ebx
push 0x401
push eax
mov dword [esp + 0x4b8], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x20]
push ebx
push 1
push 0x404
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallBoost.PCIe]
lea ecx, [esi + 0xc]
push edx
call fcn.0042083e
mov esi, dword [esi + 0xf0]
cmp esi, ebx
je 0x40fe9a
mov eax, esi
cmp esi, ebx
je 0x40fee7
mov eax, dword [eax + 8]
mov esi, dword [esi]
sub eax, 0x10
push eax
mov dword [esp + 0x70], esi
call fcn.00401760
add eax, 0x10
add esp, 4
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x30]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x4bc], 1
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40fe5a
xor eax, eax
cmp dword [esp + 0x4c], ebx
je 0x40f176
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ecx
cmp eax, ebx
jne 0x40fe5a
push 0x104
lea edx, [esp + 0x88]
push edx
push ebx
mov eax, ecx
push eax
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40fe41
lea ecx, [ecx]
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x40f1d6
push esi
lea ecx, [esp + 0x38]
call fcn.00401240
mov edi, dword [esp + 0x34]
lea ecx, [esi + 1]
push ecx
push edi
call fcn.00431987
add esp, 8
cmp esi, ebx
jl 0x40fef6
cmp esi, dword [edi - 8]
jg 0x40fef6
xor edx, edx
mov dword [edi - 0xc], esi
mov word [edi + esi*2], dx
cmp dword [edi - 0xc], ebx
jl 0x40fe0f
push str.ENUMMF
push edi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f631
sub eax, edi
sar eax, 1
jne 0x40f631
mov dword [esp + 0x70], ebx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x90]
push ecx
push edx
mov byte [esp + 0x4bc], 2
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40f60d
mov eax, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x290]
push ecx
push ebx
push eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40f5fa
nop
mov edi, dword [esp + 0x10]
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x104
lea ecx, [esp + 0x290]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x4b0], 3
call fcn.00401390
mov eax, dword [edi + 0x144]
mov esi, dword [esp + 0x18]
cmp eax, ebx
je 0x40f300
cmp dword [esi - 0xc], ebx
jl 0x40f300
push eax
push esi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f300
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40f343
mov eax, dword [edi + 0x148]
cmp eax, ebx
je 0x40f326
cmp dword [esi - 0xc], ebx
jl 0x40f326
push eax
push esi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f326
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40f343
lea eax, [esi - 0x10]
mov byte [esp + 0x4a8], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40f5c4
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x28c]
push ecx
lea edx, [esp + 0x88]
push edx
push eax
lea ecx, [esp + 0x54]
push str._s_s_s
push ecx
mov byte [esp + 0x4bc], 4
call fcn.004018f0
mov edx, dword [esp + 0x5c]
add esp, 0x14
push ebx
lea esi, [edi + 0xc]
push edx
mov ecx, esi
call fcn.004206d9
test eax, eax
jne 0x40f3b6
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.00420786
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
lea edx, [esp + 0x298]
push edx
push eax
mov byte [esp + 0x4bc], 5
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40f57c
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x4a8], 6
mov dword [esp + 0x24], 0x104
jge 0x40f452
push 0x104
lea ecx, [esp + 0x20]
call fcn.00401240
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push esi
push str.Driver
lea ecx, [esp + 0x70]
call fcn.00406d60
test eax, eax
jne 0x40f52e
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x60], eax
mov eax, dword [esi - 8]
push eax
push esi
mov byte [esp + 0x4b0], 7
call fcn.00430ec7
add esp, 8
cmp eax, ebx
jl 0x40fef6
cmp eax, dword [esi - 8]
jg 0x40fef6
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [edx + 0x124]
push esi
push eax
lea ecx, [esp + 0x68]
push str._s_s
push ecx
call fcn.004018f0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push edx
add ecx, 0xc
call fcn.004206d9
test eax, eax
jne 0x40f506
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x60]
push eax
add ecx, 0xc
call fcn.00420786
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
mov byte [esp + 0x4a8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f52e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40f541
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x64], edi
jmp 0x40f545
mov edi, dword [esp + 0x64]
lea eax, [esi - 0x10]
mov dword [esp + 0x68], ebx
mov byte [esp + 0x4a8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f56d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40f57c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov dword [esp + 0x68], ebx
mov byte [esp + 0x4a8], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x4a8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f5d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x290]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40f290
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f60d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x70]
mov byte [esp + 0x4a8], 1
cmp eax, ebx
je 0x40f628
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
jmp 0x40fe0f
cmp dword [edi - 0xc], ebx
jl 0x40fe0f
push str.ENUMPCI
push edi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f656
sub eax, edi
sar eax, 1
je 0x40f9f6
cmp dword [edi - 0xc], ebx
jl 0x40fe0f
push str.ENUMPCMCIA
push edi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f67b
sub eax, edi
sar eax, 1
je 0x40f9f6
cmp dword [edi - 0xc], ebx
jl 0x40fe0f
push str.ENUMUSB
push edi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f6a0
sub eax, edi
sar eax, 1
je 0x40f9f6
cmp dword [edi - 0xc], ebx
jl 0x40fe0f
push str.ENUMROOT
push edi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40fe0f
sub eax, edi
sar eax, 1
jne 0x40fe0f
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x104
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x4b0], 0xe
call fcn.00401390
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x30]
push 0x20019
lea ecx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x4b4], 0x10
call fcn.00406d00
test eax, eax
jne 0x40f9ae
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x4a8], 0x11
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x4a8], 0x12
mov dword [esp + 0x18], 0x104
jge 0x40f7e8
push 0x104
lea ecx, [esp + 0x18]
call fcn.00401240
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x44ac88
lea ecx, [esp + 0x64]
call fcn.00406d60
test eax, eax
jne 0x40f947
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00430ec7
add esp, 8
cmp eax, ebx
jl 0x40fef6
cmp eax, dword [esi - 8]
jg 0x40fef6
xor edx, edx
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x14]
mov word [esi + eax*2], dx
call fcn.00405e20
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x14c]
mov esi, dword [esp + 0x14]
cmp eax, ebx
je 0x40f947
cmp dword [esi - 0xc], ebx
jl 0x40f947
push eax
push esi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40f947
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x40f947
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x30]
push str._s_s
push eax
call fcn.004018f0
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
add edi, 0xc
mov ecx, edi
call fcn.004206d9
test eax, eax
jne 0x40f8b5
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call fcn.00420786
lea eax, [esp + 0x18]
push eax
push 0x104
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0x104
call fcn.00401360
push eax
push str.Driver
lea ecx, [esp + 0x64]
call fcn.00406d60
test eax, eax
jne 0x40f947
lea ecx, [esp + 0x38]
call fcn.00401290
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
mov byte [esp + 0x4ac], 0x13
call fcn.00401710
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x124]
push ecx
push eax
lea ecx, [esp + 0x40]
push str._s_s
push ecx
call fcn.004018f0
mov edx, dword [esp + 0x48]
add esp, 0x10
push ebx
push edx
mov ecx, edi
call fcn.004206d9
test eax, eax
jne 0x40f93e
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.00420786
lea ecx, [esp + 0x38]
call fcn.004011b0
mov edi, dword [esp + 0x58]
cmp edi, ebx
je 0x40f95c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4a8], 0x11
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f988
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x4a8], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40f9b2
mov edi, dword [esp + 0x58]
cmp edi, ebx
je 0x40f9c1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4a8], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f9ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x40fdeb
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b0], 8
call fcn.00401390
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x144]
mov esi, dword [esp + 0x14]
cmp eax, ebx
je 0x40fa63
cmp dword [esi - 0xc], ebx
jl 0x40fa63
push eax
push esi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40fa63
sub eax, esi
sar eax, 1
je 0x40faa2
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x148]
cmp eax, ebx
je 0x40fde7
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x40fde7
push eax
mov edx, ecx
push edx
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x40fde7
sub eax, dword [esp + 0x14]
sar eax, 1
jne 0x40fde7
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x84]
push ecx
push edi
lea edx, [esp + 0x4c]
push str._s_s
push edx
mov byte [esp + 0x4b8], 9
call fcn.004018f0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x54]
add esp, 0x10
push ebx
add esi, 0xc
push eax
mov ecx, esi
call fcn.004206d9
test eax, eax
jne 0x40fb0d
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00420786
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40fdb8
mov esi, dword [esp + 0x18]
push 0x104
lea edx, [esp + 0x290]
push edx
push ebx
push esi
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40fda9
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x298]
push ecx
push esi
mov byte [esp + 0x4bc], 0xb
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40fd7f
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x28c]
push edx
lea eax, [esp + 0x88]
push eax
push ecx
lea edx, [esp + 0x50]
push str._s_s_s
push edx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
call fcn.004018f0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x58]
add esp, 0x14
push ebx
add esi, 0xc
push eax
mov ecx, esi
call fcn.004206d9
test eax, eax
jne 0x40fbf7
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.00420786
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x4a8], 0xc
mov dword [esp + 0x24], 0x104
jge 0x40fc51
push 0x104
lea ecx, [esp + 0x20]
call fcn.00401240
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push esi
push str.Driver
lea ecx, [esp + 0x48]
call fcn.00406d60
test eax, eax
jne 0x40fd2d
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [esi - 8]
push eax
push esi
mov byte [esp + 0x4b0], 0xd
call fcn.00430ec7
add esp, 8
cmp eax, ebx
jl 0x40fef6
cmp eax, dword [esi - 8]
jg 0x40fef6
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [edx + 0x124]
push esi
push eax
lea ecx, [esp + 0x34]
push str._s_s
push ecx
call fcn.004018f0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push edx
add ecx, 0xc
call fcn.004206d9
test eax, eax
jne 0x40fd05
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
add ecx, 0xc
call fcn.00420786
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x4a8], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40fd40
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x3c], edi
jmp 0x40fd44
mov edi, dword [esp + 0x3c]
lea eax, [esi - 0x10]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x4a8], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x40fd7b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebx
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0x104
lea ecx, [esp + 0x290]
inc eax
push ecx
push eax
push esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40fb6e
cmp esi, ebx
je 0x40fdb8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0x80], ebx
mov byte [esp + 0x4a8], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fde7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x4a8], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe0f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
push 0x104
lea ecx, [esp + 0x88]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40f1b0
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
cmp dword [esp + 0x30], ebx
je 0x40fe56
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov ecx, dword [edi + 0x20]
push ebx
push ebx
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4a8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fe92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jne 0x40f112
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x12c]
mov dword [esp + 0x38], eax
cmp eax, ebx
je 0x4102af
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40fee7
mov esi, dword [eax + 8]
mov edx, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
sub esi, 0x10
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], ebx
lea ecx, [esi + 0xc]
jl 0x40ff00
cmp eax, dword [esi]
jne 0x40ff00
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40ff3b
call fcn.004118ba
push 0x80004005
call fcn.00401000
push 0x80070057
call fcn.00401000
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
cmp edi, ebx
je 0x4102f5
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00430abf
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x48], edi
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41027e
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, ebx
je 0x40ff76
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], esi
cmp eax, ebx
jne 0x41027e
push 0x104
lea edx, [esp + 0x88]
push edx
push ebx
push esi
mov dword [esp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x41026b
jmp 0x40ffb0
mov dword [esp + 0x3c], ebx
lea eax, [esp + 0x28]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x90]
push ecx
push esi
mov byte [esp + 0x4bc], 0x15
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x410235
mov edx, dword [esp + 0x28]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edx
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x4a8], 0x16
jge 0x410040
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401240
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x74]
push edx
push ebx
push str.ProviderName
push eax
mov dword [esp + 0x34], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4101e3
mov eax, dword [esp + 0x6c]
cmp eax, 1
je 0x41007e
cmp eax, 2
jne 0x4101e3
cmp esi, ebx
je 0x4100a5
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4100a0
test al, 1
jne 0x4101e3
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x4100a5
jmp 0x4101e3
xor ecx, ecx
mov word [esi], cx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00430ec7
add esp, 8
cmp eax, ebx
jl 0x40fef6
cmp eax, dword [esi - 8]
jg 0x40fef6
mov dword [esi - 0xc], eax
xor edx, edx
mov word [esi + eax*2], dx
mov edi, dword [esi - 0xc]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
sub ecx, edi
or eax, ecx
jge 0x4100ee
push edi
lea ecx, [esp + 0x1c]
call fcn.00401240
mov esi, dword [esp + 0x18]
lea eax, [edi + 1]
push eax
push esi
call fcn.00431987
add esp, 8
cmp edi, ebx
jl 0x40fef6
cmp edi, dword [esi - 8]
jg 0x40fef6
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
mov eax, dword [edx + 0x14c]
cmp eax, ebx
je 0x4101e3
cmp dword [esi - 0xc], ebx
jl 0x4101e3
push eax
push esi
call fcn.004316ba
add esp, 8
cmp eax, ebx
je 0x4101e3
sub eax, esi
sar eax, 1
jne 0x4101e3
call fcn.00411999
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x40feec
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x84]
push ecx
push edx
lea eax, [esp + 0x34]
push str._s_s
push eax
mov byte [esp + 0x4b8], 0x17
call fcn.004018f0
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
add esp, 0x10
push ebx
push ecx
add edi, 0xc
mov ecx, edi
call fcn.004206d9
test eax, eax
jne 0x4101bb
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.00420786
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x4a8], 0x16
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4101e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x4101fa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [esp + 0x3c], edi
jmp 0x4101fe
mov edi, dword [esp + 0x3c]
lea eax, [esi - 0x10]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x4a8], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410226
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x410235
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x20]
push 0x104
lea ecx, [esp + 0x88]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x64], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x40ffb0
mov edi, dword [esp + 0x48]
cmp esi, ebx
je 0x41027a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
lea eax, [edi - 0x10]
mov byte [esp + 0x4a8], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4102a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x38], ebx
jne 0x40feb0
mov edi, dword [esp + 0x78]
mov ecx, dword [edi + 0x20]
push ebx
push ebx
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x4102cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.00430eb8
mov esp, ebp
pop ebp
ret 4
call fcn.004010b0
int3