Function at 0x40b9e6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x18fc
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1840], ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x1818], ebx
mov dword [ebp - 0x1828], ecx
mov dword [ebp - 0x1830], ecx
mov dword [ebp - 0x182c], ecx
mov dword [ebp - 0x1824], ecx
cmp dword [ebp + 0xc], ecx
jne 0x40ba39
cmp word [0x45fa20], cx
jne 0x40ba57
push ecx
push 0x40c320
push ebx
push 0x6a
push dword [0x41edec]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x40c2da
xor ecx, ecx
inc ecx
call fcn.0040a299
test byte [0x41e090], 0xc
je 0x40bc27
mov eax, dword [0x45ef80]
mov esi, 0x100c
push 1
push 0xffffffffffffffff
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
mov dword [ebp - 0x18a0], eax
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x189c], edi
push edi
mov dword [ebp - 0x18a4], 1
mov dword [ebp - 0x1890], ecx
mov dword [ebp - 0x188c], 0x400
push eax
jmp 0x40bbf4
lea eax, [ebp - 0x18a4]
push eax
mov eax, dword [0x45ef80]
push edi
push 0x104b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41e090]
test al, 4
je 0x40baf3
lea ecx, [ebp - 0x808]
call fcn.0040c2eb
test eax, eax
jne 0x40c192
mov eax, dword [0x41e090]
test al, 8
je 0x40bbed
mov eax, dword [0x45ef80]
lea ecx, [ebp - 0x1810]
push ecx
push edi
lea ecx, [ebp - 0x180c]
push ecx
push edi
lea ecx, [ebp - 0x808]
push ecx
push dword [eax + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bbed
mov eax, dword [ebp - 0x180c]
cmp eax, 1
je 0x40bb41
cmp eax, 2
je 0x40bb41
cmp eax, 7
jne 0x40bbed
mov eax, dword [ebp - 0x1810]
push 2
pop ecx
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40bc13
mov eax, dword [0x45ef80]
lea ecx, [ebp - 0x1810]
push ecx
push esi
lea ecx, [ebp - 0x180c]
push ecx
push 0
lea ecx, [ebp - 0x808]
push ecx
push dword [eax + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bbd9
lea eax, [ebp - 0x1810]
push eax
push esi
lea ecx, [ebp - 0x180c]
call fcn.0040ecbf
test eax, eax
jne 0x40bbd9
cmp dword [ebp - 0x180c], 7
jne 0x40bbd0
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x183c]
mov dword [ebp - 0x1838], esi
mov dword [ebp - 0x1834], eax
call 0x49ce78
test eax, eax
je 0x40bbd0
mov esi, dword [ebp - 0x1838]
mov ecx, esi
call fcn.0040c2eb
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x40c192
mov esi, 0x100c
push edi
push dword [ebp - 0x18a0]
mov eax, dword [0x45ef80]
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18a0], eax
cmp eax, 0xffffffff
jne 0x40bab8
jmp 0x40bc29
mov dword [ebp - 0x1828], 1
mov esi, 0x132
jmp 0x40c250
xor edi, edi
push edi
push 0x40c4d0
push ebx
push 0x6d
push dword [0x41edec]
mov dword [0x41ede4], 1
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x1824], eax
test eax, eax
je 0x40bc78
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x45ef80]
push 0
push 0
push 0xb
mov byte [ecx + 0x3e], 1
mov eax, dword [0x45ef80]
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
mov dword [ebp - 0x1868], 0x49
mov word [ebp - 0x1008], ax
xor esi, esi
lea eax, [ebp - 0x1808]
mov dword [ebp - 0x1854], 0x400
push esi
mov dword [ebp - 0x1858], eax
mov edi, 0x110a
mov eax, dword [0x45ef80]
xor ebx, ebx
push 9
push edi
mov dword [ebp - 0x181c], esi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1868]
push eax
mov eax, dword [0x45ef80]
push esi
push 0x113e
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41ede4], 0
je 0x40c20e
mov ecx, dword [ebp - 0x1824]
call fcn.0040ea0f
test eax, eax
jne 0x40bce3
cmp dword [0x41ede4], eax
je 0x40c20e
cmp dword [ebp - 0x1848], eax
je 0x40bd68
push dword [ebp - 0x1864]
mov eax, dword [0x45ef80]
push 4
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40bdcf
mov ecx, dword [0x45ef80]
mov edx, dword [ebp - 0x1864]
mov ecx, dword [ecx + 0x60]
call fcn.0040df1b
test eax, eax
je 0x40bd68
push dword [ebp - 0x1864]
mov eax, dword [0x45ef80]
push 4
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40bd68
inc ebx
jmp 0x40bdcf
push dword [ebp - 0x1864]
jmp 0x40bdba
push dword [ebp - 0x1864]
mov eax, dword [0x45ef80]
push 3
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1864], eax
test eax, eax
je 0x40c114
test ebx, ebx
je 0x40bdb9
push eax
mov eax, dword [0x45ef80]
dec ebx
push 0x8001
push 0x1102
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x1864]
push eax
mov eax, dword [0x45ef80]
push 1
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40bd70
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1868]
push eax
mov eax, dword [0x45ef80]
push 0
push 0x113e
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41e090]
test al, 2
je 0x40be12
lea ecx, [ebp - 0x1808]
call fcn.0040c2eb
test eax, eax
jne 0x40c0cd
mov eax, dword [0x41e090]
test al, 0xc
je 0x40bce3
mov ecx, dword [0x45ef80]
lea eax, [ebp - 0x1808]
mov edx, dword [ebp - 0x1864]
push 0
push 0x400
mov ecx, dword [ecx + 0x60]
push eax
call fcn.0040ddc8
test eax, eax
je 0x40bce3
lea ecx, [ebp - 0x1814]
push ecx
push 1
push 0
lea ecx, [ebp - 0x1808]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bce3
mov eax, dword [0x41e090]
and eax, 0xd
cmp al, 5
jne 0x40beb3
xor eax, eax
push eax
push eax
push eax
push eax
push 0x45fa20
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c0b9
push 0x45fa20
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.00404f69
xor esi, esi
inc esi
mov dword [ebp - 0x181c], esi
jmp 0x40c0b9
xor ecx, ecx
mov dword [ebp - 0x1820], 0x400
lea eax, [ebp - 0x1810]
mov edi, ecx
push eax
push ecx
lea eax, [ebp - 0x180c]
push eax
push ecx
lea eax, [ebp - 0x1820]
push eax
lea eax, [ebp - 0x808]
push eax
push ecx
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40c0b4
mov eax, dword [0x41e090]
inc edi
test al, 8
je 0x40bf3a
cmp dword [ebp - 0x180c], 1
je 0x40bf1d
cmp dword [ebp - 0x180c], 2
je 0x40bf1d
cmp dword [ebp - 0x180c], 7
je 0x40bf1d
xor ecx, ecx
jmp 0x40bf20
push 2
pop ecx
mov eax, dword [ebp - 0x1810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov eax, dword [0x41e090]
jmp 0x40bf3c
xor esi, esi
test esi, esi
jne 0x40bf48
test al, 8
jne 0x40c123
lea eax, [ebp - 0x1810]
push eax
push esi
lea eax, [ebp - 0x180c]
push eax
push 0
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c064
lea eax, [ebp - 0x1810]
push eax
push esi
lea ecx, [ebp - 0x180c]
call fcn.0040ecbf
test eax, eax
jne 0x40c064
test esi, esi
je 0x40bfc5
mov eax, dword [ebp - 0x180c]
cmp eax, 7
jne 0x40bfcb
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x183c]
mov dword [ebp - 0x1838], esi
mov dword [ebp - 0x1834], eax
call fcn.004152f2
test eax, eax
je 0x40bfc5
mov esi, dword [ebp - 0x1838]
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41e090]
test cl, 4
je 0x40bff1
lea ecx, [ebp - 0x808]
call fcn.0040c2eb
test eax, eax
jne 0x40c010
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41e090]
test cl, 8
je 0x40c064
cmp eax, 1
je 0x40c005
cmp eax, 2
je 0x40c005
cmp eax, 7
jne 0x40c064
mov ecx, esi
call fcn.0040c2eb
test eax, eax
je 0x40c064
cmp dword [ebp - 0x181c], 0
lea eax, [ebp - 0x808]
push eax
je 0x40c04a
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x40c064
lea eax, [ebp - 0x808]
mov edx, 0x400
push eax
lea ecx, [ebp - 0x1008]
call fcn.00404f69
jmp 0x40c064
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.00404f69
mov dword [ebp - 0x181c], 1
test esi, esi
je 0x40c06f
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1810]
mov dword [ebp - 0x1820], 0x400
push eax
push 0
lea eax, [ebp - 0x180c]
push eax
push 0
lea eax, [ebp - 0x1820]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40bef4
mov esi, dword [ebp - 0x181c]
mov edi, 0x110a
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bce3
push dword [ebp - 0x1864]
mov eax, dword [0x45ef80]
push 0
push 0x1114
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1864]
mov eax, dword [0x45ef80]
push 9
push 0x110b
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
jne 0x40c137
mov eax, dword [0x45ef80]
add eax, 0x60
jmp 0x40c204
mov dword [ebp - 0x1830], 1
jmp 0x40c248
mov dword [ebp - 0x1828], 1
mov esi, 0x132
jmp 0x40c24a
push dword [ebp - 0x1818]
mov ecx, dword [ebp - 0x1840]
call fcn.0040c929
cmp word [ebp - 0x1008], 0
jne 0x40c15b
and dword [ebp - 0x18a0], 0
jmp 0x40c192
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x18bc], 2
mov dword [ebp - 0x18b8], eax
lea eax, [ebp - 0x18bc]
push eax
mov eax, dword [0x45ef80]
push 0xffffffffffffffff
push 0x1053
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18a0], eax
and dword [ebp - 0x18ec], 0
lea eax, [ebp - 0x18f8]
push 3
pop ebx
push eax
mov eax, dword [0x45ef80]
mov esi, 0x102b
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x18e8], ebx
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x18f8]
mov dword [ebp - 0x18e8], ebx
push eax
push dword [ebp - 0x18a0]
mov eax, dword [0x45ef80]
push esi
mov dword [ebp - 0x18ec], ebx
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x45ef80]
push 0
push dword [ebp - 0x18a0]
push 0x1013
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x45ef80]
mov eax, dword [eax]
mov dword [ebp - 0x182c], eax
jmp 0x40c248
test ebx, ebx
je 0x40c248
mov eax, dword [ebp - 0x1864]
push eax
mov eax, dword [0x45ef80]
push 3
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
sub ebx, 1
jne 0x40c218
push eax
mov eax, dword [0x45ef80]
push 0x8001
push 0x1102
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov ebx, dword [ebp - 0x1818]
xor ecx, ecx
call fcn.0040a299
mov edi, dword [ebp - 0x1824]
test edi, edi
je 0x40c28e
mov eax, dword [0x45ef80]
push 0
push 1
push 0xb
mov byte [eax + 0x3e], 0
mov eax, dword [0x45ef80]
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x182c]
test eax, eax
je 0x40c29f
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1828], 0
je 0x40c2bc
push 0x10
push 0x10
push esi
push ebx
push dword [0x41edec]
call 0x49ce78
add esp, 0x14
cmp dword [ebp - 0x1830], 0
je 0x40c2da
push 0x40
push 0x10
push 0x29
push ebx
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 8