Function at 0x40ba76
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x18fc
call fcn.0041d440
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 0x40bac9
cmp word [0x45fa30], cx
jne 0x40bae7
push ecx
push 0x40c3b0
push ebx
push 0x6a
push dword [0x41edf4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x40c36a
xor ecx, ecx
inc ecx
call fcn.0040a309
test byte [0x41e090], 0xc
je 0x40bcb7
mov eax, dword [0x45ef88]
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 0x40bc84
lea eax, [ebp - 0x18a4]
push eax
mov eax, dword [0x45ef88]
push edi
push 0x104b
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41e090]
test al, 4
je 0x40bb83
lea ecx, [ebp - 0x808]
call fcn.0040c37b
test eax, eax
jne 0x40c222
mov eax, dword [0x41e090]
test al, 8
je 0x40bc7d
mov eax, dword [0x45ef88]
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 0x40bc7d
mov eax, dword [ebp - 0x180c]
cmp eax, 1
je 0x40bbd1
cmp eax, 2
je 0x40bbd1
cmp eax, 7
jne 0x40bc7d
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 0x40bca3
mov eax, dword [0x45ef88]
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 0x40bc69
lea eax, [ebp - 0x1810]
push eax
push esi
lea ecx, [ebp - 0x180c]
call fcn.0040ed4f
test eax, eax
jne 0x40bc69
cmp dword [ebp - 0x180c], 7
jne 0x40bc60
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x183c]
mov dword [ebp - 0x1838], esi
mov dword [ebp - 0x1834], eax
call fcn.004153cf
test eax, eax
je 0x40bc60
mov esi, dword [ebp - 0x1838]
mov ecx, esi
call fcn.0040c37b
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x40c222
mov esi, 0x100c
push edi
push dword [ebp - 0x18a0]
mov eax, dword [0x45ef88]
push esi
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18a0], eax
cmp eax, 0xffffffff
jne 0x40bb48
jmp 0x40bcb9
mov dword [ebp - 0x1828], 1
mov esi, 0x132
jmp 0x40c2e0
xor edi, edi
push edi
push 0x40c560
push ebx
push 0x6d
push dword [0x41edf4]
mov dword [0x41edec], 1
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x1824], eax
test eax, eax
je 0x40bd08
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x45ef88]
push 0
push 0
push 0xb
mov byte [ecx + 0x3e], 1
mov eax, dword [0x45ef88]
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 [0x45ef88]
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 [0x45ef88]
push esi
push 0x113e
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41edec], 0
je 0x40c29e
mov ecx, dword [ebp - 0x1824]
call fcn.0040ea9f
test eax, eax
jne 0x40bd73
cmp dword [0x41edec], eax
je 0x40c29e
cmp dword [ebp - 0x1848], eax
je 0x40bdf8
push dword [ebp - 0x1864]
mov eax, dword [0x45ef88]
push 4
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40be5f
mov ecx, dword [0x45ef88]
mov edx, dword [ebp - 0x1864]
mov ecx, dword [ecx + 0x60]
call fcn.0040dfab
test eax, eax
je 0x40bdf8
push dword [ebp - 0x1864]
mov eax, dword [0x45ef88]
push 4
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40bdf8
inc ebx
jmp 0x40be5f
push dword [ebp - 0x1864]
jmp 0x40be4a
push dword [ebp - 0x1864]
mov eax, dword [0x45ef88]
push 3
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1864], eax
test eax, eax
je 0x40c1a4
test ebx, ebx
je 0x40be49
push eax
mov eax, dword [0x45ef88]
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 [0x45ef88]
push 1
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40be00
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1868]
push eax
mov eax, dword [0x45ef88]
push 0
push 0x113e
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41e090]
test al, 2
je 0x40bea2
lea ecx, [ebp - 0x1808]
call fcn.0040c37b
test eax, eax
jne 0x40c15d
mov eax, dword [0x41e090]
test al, 0xc
je 0x40bd73
mov ecx, dword [0x45ef88]
lea eax, [ebp - 0x1808]
mov edx, dword [ebp - 0x1864]
push 0
push 0x400
mov ecx, dword [ecx + 0x60]
push eax
call fcn.0040de58
test eax, eax
je 0x40bd73
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 0x40bd73
mov eax, dword [0x41e090]
and eax, 0xd
cmp al, 5
jne 0x40bf43
xor eax, eax
push eax
push eax
push eax
push eax
push 0x45fa30
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c149
push 0x45fa30
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.00404fa9
xor esi, esi
inc esi
mov dword [ebp - 0x181c], esi
jmp 0x40c149
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 0x40c144
mov eax, dword [0x41e090]
inc edi
test al, 8
je 0x40bfca
cmp dword [ebp - 0x180c], 1
je 0x40bfad
cmp dword [ebp - 0x180c], 2
je 0x40bfad
cmp dword [ebp - 0x180c], 7
je 0x40bfad
xor ecx, ecx
jmp 0x40bfb0
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 0x40bfcc
xor esi, esi
test esi, esi
jne 0x40bfd8
test al, 8
jne 0x40c1b3
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 0x40c0f4
lea eax, [ebp - 0x1810]
push eax
push esi
lea ecx, [ebp - 0x180c]
call fcn.0040ed4f
test eax, eax
jne 0x40c0f4
test esi, esi
je 0x40c055
mov eax, dword [ebp - 0x180c]
cmp eax, 7
jne 0x40c05b
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x183c]
mov dword [ebp - 0x1838], esi
mov dword [ebp - 0x1834], eax
call fcn.004153cf
test eax, eax
je 0x40c055
mov esi, dword [ebp - 0x1838]
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41e090]
test cl, 4
je 0x40c081
lea ecx, [ebp - 0x808]
call fcn.0040c37b
test eax, eax
jne 0x40c0a0
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41e090]
test cl, 8
je 0x40c0f4
cmp eax, 1
je 0x40c095
cmp eax, 2
je 0x40c095
cmp eax, 7
jne 0x40c0f4
mov ecx, esi
call fcn.0040c37b
test eax, eax
je 0x40c0f4
cmp dword [ebp - 0x181c], 0
lea eax, [ebp - 0x808]
push eax
je 0x40c0da
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x40c0f4
lea eax, [ebp - 0x808]
mov edx, 0x400
push eax
lea ecx, [ebp - 0x1008]
call fcn.00404fa9
jmp 0x40c0f4
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.00404fa9
mov dword [ebp - 0x181c], 1
test esi, esi
je 0x40c0ff
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 0x40bf84
mov esi, dword [ebp - 0x181c]
mov edi, 0x110a
push dword [ebp - 0x1814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40bd73
push dword [ebp - 0x1864]
mov eax, dword [0x45ef88]
push 0
push 0x1114
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1864]
mov eax, dword [0x45ef88]
push 9
push 0x110b
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
jne 0x40c1c7
mov eax, dword [0x45ef88]
add eax, 0x60
jmp 0x40c294
mov dword [ebp - 0x1830], 1
jmp 0x40c2d8
mov dword [ebp - 0x1828], 1
mov esi, 0x132
jmp 0x40c2da
push dword [ebp - 0x1818]
mov ecx, dword [ebp - 0x1840]
call fcn.0040c9b9
cmp word [ebp - 0x1008], 0
jne 0x40c1eb
and dword [ebp - 0x18a0], 0
jmp 0x40c222
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x18bc], 2
mov dword [ebp - 0x18b8], eax
lea eax, [ebp - 0x18bc]
push eax
mov eax, dword [0x45ef88]
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 [0x45ef88]
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 [0x45ef88]
push esi
mov dword [ebp - 0x18ec], ebx
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x45ef88]
push 0
push dword [ebp - 0x18a0]
push 0x1013
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x45ef88]
mov eax, dword [eax]
mov dword [ebp - 0x182c], eax
jmp 0x40c2d8
test ebx, ebx
je 0x40c2d8
mov eax, dword [ebp - 0x1864]
push eax
mov eax, dword [0x45ef88]
push 3
push edi
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
sub ebx, 1
jne 0x40c2a8
push eax
mov eax, dword [0x45ef88]
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.0040a309
mov edi, dword [ebp - 0x1824]
test edi, edi
je 0x40c31e
mov eax, dword [0x45ef88]
push 0
push 1
push 0xb
mov byte [eax + 0x3e], 0
mov eax, dword [0x45ef88]
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 0x40c32f
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1828], 0
je 0x40c34c
push 0x10
push 0x10
push esi
push ebx
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x14
cmp dword [ebp - 0x1830], 0
je 0x40c36a
push 0x40
push 0x10
push 0x29
push ebx
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret 8