Function at 0x408b56
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x18fc
call fcn.0041a3e0
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x1814], ebx
inc edi
mov dword [ebp - 0x1830], esi
mov dword [ebp - 0x182c], esi
mov dword [ebp - 0x1834], esi
mov dword [ebp - 0x181c], esi
mov dword [ebp - 0x1824], esi
test edx, edx
jne 0x408baa
cmp word [0x45da18], si
jne 0x408bc7
push esi
push 0x409460
push ebx
push 0x6a
push dword [0x41be1c]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, edi
jne 0x409427
mov ecx, edi
call fcn.00407d9b
test byte [0x41b0f0], 0xc
je 0x408d74
push edi
push 0xffffffffffffffff
push 0x100c
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x18a0], eax
push esi
mov dword [ebp - 0x189c], esi
mov dword [ebp - 0x18a4], edi
mov dword [ebp - 0x1890], ecx
mov dword [ebp - 0x188c], 0x400
push eax
jmp 0x408d54
lea eax, [ebp - 0x18a4]
push eax
push esi
push 0x104b
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41b0f0]
test al, 4
je 0x408c58
lea ecx, [ebp - 0x808]
call fcn.00409438
test eax, eax
jne 0x4092e4
mov eax, dword [0x41b0f0]
test al, 8
je 0x408d4d
lea eax, [ebp - 0x1810]
push eax
push esi
lea eax, [ebp - 0x180c]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d4d
mov eax, dword [ebp - 0x180c]
cmp eax, edi
je 0x408ca3
cmp eax, 2
je 0x408ca3
cmp eax, 7
jne 0x408d4d
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 0x408ea8
lea eax, [ebp - 0x1810]
xor edi, edi
push eax
push esi
lea eax, [ebp - 0x180c]
push eax
push edi
lea eax, [ebp - 0x808]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408d3b
lea eax, [ebp - 0x1810]
mov edx, esi
push eax
lea ecx, [ebp - 0x180c]
call fcn.0040bd9d
test eax, eax
jne 0x408d3b
cmp dword [ebp - 0x180c], 7
jne 0x408d32
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x1840]
mov dword [ebp - 0x183c], esi
mov dword [ebp - 0x1838], eax
call fcn.004123f5
test eax, eax
je 0x408d32
mov esi, dword [ebp - 0x183c]
mov ecx, esi
call fcn.00409438
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x4092e4
xor esi, esi
inc edi
push esi
push dword [ebp - 0x18a0]
push 0x100c
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18a0], eax
cmp eax, 0xffffffff
jne 0x408c1e
push esi
push 0x409600
push ebx
push 0x6d
push dword [0x41be1c]
mov dword [0x41be04], edi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov edi, eax
mov dword [ebp - 0x1824], edi
test edi, edi
je 0x408dbd
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push esi
push 0xb
push dword [0x41b080]
mov dword [0x41b0d8], 1
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
xor eax, eax
mov dword [ebp - 0x1820], esi
push 0x110a
push dword [0x41b080]
mov word [ebp - 0x1008], ax
mov ebx, esi
lea eax, [ebp - 0x1808]
mov dword [ebp - 0x1868], 0x49
mov dword [ebp - 0x1858], eax
mov dword [ebp - 0x1854], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1868]
push eax
push 0
push 0x113e
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x41be04], 0
je 0x409358
mov ecx, edi
call fcn.0040bad7
test eax, eax
jne 0x408e23
cmp dword [0x41be04], eax
je 0x409358
cmp dword [ebp - 0x1848], eax
je 0x408ebf
push dword [ebp - 0x1864]
push 4
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x408f28
mov edx, dword [ebp - 0x1864]
mov ecx, dword [0x41b080]
call fcn.0040b053
test eax, eax
je 0x408ebf
push dword [ebp - 0x1864]
push 4
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x408ebf
inc ebx
jmp 0x408f28
mov dword [ebp - 0x182c], edi
mov esi, ebx
mov dword [ebp - 0x1830], 0x132
jmp 0x409398
push dword [ebp - 0x1864]
jmp 0x408f11
push dword [ebp - 0x1864]
push 3
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1864], eax
test eax, eax
je 0x40926a
test ebx, ebx
je 0x408f10
push eax
push 0x8001
push 0x1102
push dword [0x41b080]
dec ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x1864]
push eax
push 1
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x408ec7
mov dword [ebp - 0x1864], eax
lea eax, [ebp - 0x1868]
push eax
push 0
push 0x113e
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x41b0f0]
test al, 2
je 0x408f69
lea ecx, [ebp - 0x1808]
call fcn.00409438
test eax, eax
jne 0x409223
mov eax, dword [0x41b0f0]
test al, 0xc
je 0x408e23
mov edx, dword [ebp - 0x1864]
lea eax, [ebp - 0x1808]
mov ecx, dword [0x41b080]
push 0
push 0x400
push eax
call fcn.0040af0b
test eax, eax
je 0x408e23
lea ecx, [ebp - 0x1818]
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 0x408e23
mov eax, dword [0x41b0f0]
and eax, 0xd
cmp al, 5
jne 0x409007
xor eax, eax
push eax
push eax
push eax
push eax
push 0x45da18
push dword [ebp - 0x1818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40920f
push 0x45da18
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.00404881
xor esi, esi
inc esi
mov dword [ebp - 0x1820], esi
jmp 0x40920f
xor ecx, ecx
mov dword [ebp - 0x1828], 0x400
lea eax, [ebp - 0x1810]
mov edi, ecx
push eax
push ecx
lea eax, [ebp - 0x180c]
push eax
push ecx
lea eax, [ebp - 0x1828]
push eax
lea eax, [ebp - 0x808]
push eax
push ecx
push dword [ebp - 0x1818]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x409209
mov eax, dword [0x41b0f0]
inc edi
test al, 8
je 0x40908e
cmp dword [ebp - 0x180c], 1
je 0x409071
cmp dword [ebp - 0x180c], 2
je 0x409071
cmp dword [ebp - 0x180c], 7
je 0x409071
xor ecx, ecx
jmp 0x409074
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 [0x41b0f0]
jmp 0x409090
xor esi, esi
test esi, esi
jne 0x40909c
test al, 8
jne 0x409279
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 - 0x1818]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4091b9
lea eax, [ebp - 0x1810]
mov edx, esi
push eax
lea ecx, [ebp - 0x180c]
call fcn.0040bd9d
test eax, eax
jne 0x4091b9
test esi, esi
je 0x40911a
mov eax, dword [ebp - 0x180c]
cmp eax, 7
jne 0x409120
mov eax, dword [ebp - 0x1810]
lea ecx, [ebp - 0x1840]
mov dword [ebp - 0x183c], esi
mov dword [ebp - 0x1838], eax
call fcn.0049ac85
test eax, eax
je 0x40911a
mov esi, dword [ebp - 0x183c]
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41b0f0]
test cl, 4
je 0x409146
lea ecx, [ebp - 0x808]
call fcn.00409438
test eax, eax
jne 0x409165
mov eax, dword [ebp - 0x180c]
mov ecx, dword [0x41b0f0]
test cl, 8
je 0x4091b9
cmp eax, 1
je 0x40915a
cmp eax, 2
je 0x40915a
cmp eax, 7
jne 0x4091b9
mov ecx, esi
call fcn.00409438
test eax, eax
je 0x4091b9
cmp dword [ebp - 0x1820], 0
lea eax, [ebp - 0x808]
push eax
je 0x40919f
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x4091b9
lea eax, [ebp - 0x808]
mov edx, 0x400
push eax
lea ecx, [ebp - 0x1008]
call fcn.00404881
jmp 0x4091b9
mov edx, 0x400
lea ecx, [ebp - 0x1008]
call fcn.00404881
mov dword [ebp - 0x1820], 1
test esi, esi
je 0x4091c4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x1810]
mov dword [ebp - 0x1828], 0x400
push eax
push 0
lea eax, [ebp - 0x180c]
push eax
push 0
lea eax, [ebp - 0x1828]
push eax
lea eax, [ebp - 0x808]
push eax
push edi
push dword [ebp - 0x1818]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x409048
mov esi, dword [ebp - 0x1820]
mov edi, dword [ebp - 0x1824]
push dword [ebp - 0x1818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x408e23
push dword [ebp - 0x1864]
push 0
push 0x1114
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1864]
push 9
push 0x110b
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
mov esi, dword [ebp - 0x1814]
jne 0x409292
mov ebx, dword [0x41b080]
jmp 0x40939e
mov dword [ebp - 0x1834], 1
jmp 0x409392
mov dword [ebp - 0x182c], 1
mov dword [ebp - 0x1830], 0x132
jmp 0x409392
mov ecx, esi
call fcn.00409a4f
cmp word [ebp - 0x1008], 0
jne 0x4092ac
and dword [ebp - 0x18a0], 0
jmp 0x4092e6
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x18bc], 2
mov dword [ebp - 0x18b8], eax
lea eax, [ebp - 0x18bc]
push eax
push 0xffffffffffffffff
push 0x1053
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x18a0], eax
jmp 0x4092e6
mov esi, ebx
and dword [ebp - 0x18ec], 0
lea eax, [ebp - 0x18f8]
push 3
pop ebx
push eax
push 0xffffffffffffffff
mov edi, 0x102b
mov dword [ebp - 0x18e8], ebx
push edi
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x18f8]
mov dword [ebp - 0x18e8], ebx
push eax
push dword [ebp - 0x18a0]
mov dword [ebp - 0x18ec], ebx
push edi
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp - 0x18a0]
push 0x1013
push dword [0x41b084]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [0x41b084]
jmp 0x40939e
test ebx, ebx
je 0x409392
mov eax, dword [ebp - 0x1864]
push eax
push 3
push 0x110a
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
sub ebx, 1
jne 0x409362
push eax
push 0x8001
push 0x1102
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0x1814]
mov ebx, dword [ebp - 0x181c]
xor ecx, ecx
call fcn.00407d9b
mov edi, dword [ebp - 0x1824]
test edi, edi
je 0x4093d8
and dword [0x41b0d8], 0
push 0
push 1
push 0xb
push dword [0x41b080]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
test ebx, ebx
je 0x4093e3
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x182c], 0
je 0x409409
mov eax, dword [ebp - 0x1830]
push 0x10
push 0x10
movzx eax, ax
push eax
push esi
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x14
cmp dword [ebp - 0x1834], 0
je 0x409427
push 0x40
push 0x10
push 0x29
push esi
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret