Function at 0x40c7a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x18fc
call fcn.0041e500
mov eax, dword [0x41f024]
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 0x40c7fb
cmp word [0x460a40], cx
jne 0x40c819
push ecx
push 0x40d0c0
push ebx
push 0x6a
push dword [0x41fe14]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x40d06f
xor ecx, ecx
inc ecx
call fcn.0040a807
test byte [0x41f090], 0xc
je 0x40c9cf
mov eax, dword [0x461250]
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 0x40c99c
lea eax, [ebp - 0x18a4]
push eax
mov eax, dword [0x461250]
push edi
push 0x104b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41f090]
test al, 4
je 0x40c8b5
lea ecx, [ebp - 0x808]
call fcn.0040d086
test eax, eax
jne 0x40cf27
mov eax, dword [0x41f090]
test al, 8
je 0x40c995
lea eax, [ebp - 0x1810]
push eax
push edi
lea eax, [ebp - 0x180c]
push eax
push ecx
lea eax, [ebp - 0x808]
push eax
mov eax, dword [0x461250]
push dword [eax + 0x64]
call fcn.0040fbf3
test eax, eax
jne 0x40c995
mov eax, dword [ebp - 0x180c]
cmp eax, 1
je 0x40c902
cmp eax, 2
je 0x40c902
cmp eax, 7
jne 0x40c995
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 0x40c9bb
lea eax, [ebp - 0x1810]
push eax
push esi
lea eax, [ebp - 0x180c]
push eax
push ecx
lea eax, [ebp - 0x808]
push eax
mov eax, dword [0x461250]
push dword [eax + 0x64]
call fcn.0040fbf3
test eax, eax
jne 0x40c981
cmp dword [ebp - 0x180c], 7
jne 0x40c978
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x183c]
mov dword [ebp - 0x1838], esi
mov dword [ebp - 0x1834], eax
call fcn.004162f7
test eax, eax
je 0x40c978
mov esi, dword [ebp - 0x1838]
mov ecx, esi
call fcn.0040d086
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x40cf27
mov esi, 0x100c
push edi
push dword [ebp - 0x18a0]
mov eax, dword [0x461250]
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18a0], eax
cmp eax, 0xffffffff
jne 0x40c87a
jmp 0x40c9d1
mov dword [ebp - 0x1828], 1
mov esi, 0x132
jmp 0x40cfe5
xor edi, edi
push edi
push 0x40d290
push ebx
push 0x6d
push dword [0x41fe14]
mov dword [0x41fe0c], 1
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x1824], eax
test eax, eax
je 0x40ca20
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x461250]
push 0
push 0
push 0xb
mov byte [ecx + 0x3e], 1
mov eax, dword [0x461250]
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 [0x461250]
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 [0x461250]
push esi
push 0x113e
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41fe0c], 0
je 0x40cfa3
mov ecx, dword [ebp - 0x1824]
call fcn.0040f937
test eax, eax
jne 0x40ca8b
cmp dword [0x41fe0c], eax
je 0x40cfa3
cmp dword [ebp - 0x1848], eax
je 0x40cb10
push dword [ebp - 0x1864]
mov eax, dword [0x461250]
push 4
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40cb77
mov ecx, dword [0x461250]
mov edx, dword [ebp - 0x1864]
mov ecx, dword [ecx + 0x60]
call fcn.0040ed3f
test eax, eax
je 0x40cb10
push dword [ebp - 0x1864]
mov eax, dword [0x461250]
push 4
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40cb10
inc ebx
jmp 0x40cb77
push dword [ebp - 0x1864]
jmp 0x40cb62
push dword [ebp - 0x1864]
mov eax, dword [0x461250]
push 3
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1864], eax
test eax, eax
je 0x40cea9
test ebx, ebx
je 0x40cb61
push eax
mov eax, dword [0x461250]
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 [0x461250]
push 1
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40cb18
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1868]
push eax
mov eax, dword [0x461250]
push 0
push 0x113e
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41f090]
test al, 2
je 0x40cbba
lea ecx, [ebp - 0x1808]
call fcn.0040d086
test eax, eax
jne 0x40ce62
mov eax, dword [0x41f090]
test al, 0xc
je 0x40ca8b
mov ecx, dword [0x461250]
lea eax, [ebp - 0x1808]
mov edx, dword [ebp - 0x1864]
push 0
push 0x400
mov ecx, dword [ecx + 0x60]
push eax
call fcn.0040ebe0
test eax, eax
je 0x40ca8b
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 0x40ca8b
mov eax, dword [0x41f090]
and eax, 0xd
cmp al, 5
jne 0x40cc5d
xor eax, eax
push eax
push eax
push eax
push eax
push 0x460a40
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ce4e
push ecx
push 0x460a40
push ecx
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.0040529a
xor esi, esi
inc esi
mov dword [ebp - 0x181c], esi
jmp 0x40ce4e
lea eax, [ebp - 0x1810]
mov dword [ebp - 0x1820], 0x400
push eax
xor ecx, ecx
lea eax, [ebp - 0x180c]
push ecx
push eax
push ecx
lea eax, [ebp - 0x1820]
xor edi, edi
push eax
lea eax, [ebp - 0x808]
inc edi
push eax
push ecx
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40ce49
mov eax, dword [0x41f090]
test al, 8
je 0x40cce8
cmp dword [ebp - 0x180c], 1
je 0x40ccc7
cmp dword [ebp - 0x180c], 2
je 0x40ccc7
cmp dword [ebp - 0x180c], 7
je 0x40ccc7
xor ecx, ecx
jmp 0x40ccca
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
test esi, esi
jne 0x40ccf2
mov eax, dword [0x41f090]
jmp 0x40ccea
xor esi, esi
test al, 8
jne 0x40ceb8
lea eax, [ebp - 0x1810]
push eax
push esi
lea eax, [ebp - 0x180c]
push eax
push ecx
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x1814]
call fcn.0040fbf3
test eax, eax
jne 0x40cdf6
test esi, esi
je 0x40cd52
mov eax, dword [ebp - 0x180c]
cmp eax, 7
jne 0x40cd58
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x183c]
mov dword [ebp - 0x1838], esi
mov dword [ebp - 0x1834], eax
call fcn.0049dc22
test eax, eax
je 0x40cd52
mov esi, dword [ebp - 0x1838]
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41f090]
test cl, 4
je 0x40cd7e
lea ecx, [ebp - 0x808]
call fcn.0040d086
test eax, eax
jne 0x40cd9d
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41f090]
test cl, 8
je 0x40cdf6
cmp eax, 1
je 0x40cd92
cmp eax, 2
je 0x40cd92
cmp eax, 7
jne 0x40cdf6
mov ecx, esi
call fcn.0040d086
test eax, eax
je 0x40cdf6
cmp dword [ebp - 0x181c], 0
lea eax, [ebp - 0x808]
je 0x40cdd9
push eax
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x40cdf6
push ecx
lea eax, [ebp - 0x808]
mov edx, 0x400
push eax
push ecx
lea ecx, [ebp - 0x1008]
call fcn.0040529a
jmp 0x40cdf6
push ecx
push eax
push ecx
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.0040529a
mov dword [ebp - 0x181c], 1
test esi, esi
je 0x40ce01
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x1810]
mov dword [ebp - 0x1820], 0x400
push ecx
push 0
lea ecx, [ebp - 0x180c]
mov eax, edi
push ecx
push 0
lea ecx, [ebp - 0x1820]
inc edi
push ecx
lea ecx, [ebp - 0x808]
push ecx
push eax
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40cc9f
mov esi, dword [ebp - 0x181c]
mov edi, 0x110a
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ca8b
push dword [ebp - 0x1864]
mov eax, dword [0x461250]
push 0
push 0x1114
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1864]
mov eax, dword [0x461250]
push 9
push 0x110b
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
jne 0x40cecc
mov eax, dword [0x461250]
add eax, 0x60
jmp 0x40cf99
mov dword [ebp - 0x1830], 1
jmp 0x40cfdd
mov dword [ebp - 0x1828], 1
mov esi, 0x132
jmp 0x40cfdf
push dword [ebp - 0x1818]
mov ecx, dword [ebp - 0x1840]
call fcn.0040d70c
cmp word [ebp - 0x1008], 0
jne 0x40cef0
and dword [ebp - 0x18a0], 0
jmp 0x40cf27
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x18bc], 2
mov dword [ebp - 0x18b8], eax
lea eax, [ebp - 0x18bc]
push eax
mov eax, dword [0x461250]
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 [0x461250]
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 [0x461250]
push esi
mov dword [ebp - 0x18ec], ebx
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x461250]
push 0
push dword [ebp - 0x18a0]
push 0x1013
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x461250]
mov eax, dword [eax]
mov dword [ebp - 0x182c], eax
jmp 0x40cfdd
test ebx, ebx
je 0x40cfdd
mov eax, dword [ebp - 0x1864]
push eax
mov eax, dword [0x461250]
push 3
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
sub ebx, 1
jne 0x40cfad
push eax
mov eax, dword [0x461250]
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.0040a807
mov edi, dword [ebp - 0x1824]
test edi, edi
je 0x40d023
mov eax, dword [0x461250]
push 0
push 1
push 0xb
mov byte [eax + 0x3e], 0
mov eax, dword [0x461250]
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 0x40d034
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1828], 0
je 0x40d051
push 0x10
push 0x10
push esi
push ebx
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x14
cmp dword [ebp - 0x1830], 0
je 0x40d06f
push 0x40
push 0x10
push 0x29
push ebx
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 8