Function at 0x1007839
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6ec
mov eax, dword [0x10191f4]
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x624], ebx
jne 0x100787e
cmp word [0x1019228], bx
jne 0x100789c
push ebx
push 0x10077b9
push eax
push 0x6a
push dword [0x1019510]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x10080a6
push esi
push edi
push 1
call fcn.010050ae
test byte [0x10190c0], 0xc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x1007a57
push 1
push 0xffffffffffffffff
mov edi, 0x100c
push edi
push dword [0x1019064]
call esi
lea ecx, [ebp - 0x204]
push ebx
mov dword [ebp - 0x69c], eax
mov dword [ebp - 0x698], ebx
mov dword [ebp - 0x6a0], 1
mov dword [ebp - 0x68c], ecx
mov dword [ebp - 0x688], 0x100
push eax
jmp 0x1007a3f
lea eax, [ebp - 0x6a0]
push eax
push ebx
push 0x104b
push dword [0x1019064]
call esi
test byte [0x10190c0], 4
je 0x100792f
lea eax, [ebp - 0x204]
push eax
call fcn.010075a7
test eax, eax
jne 0x1007f94
test byte [0x10190c0], 8
je 0x1007a38
lea eax, [ebp - 0x618]
push eax
push ebx
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
call fcn.0100a0c1
test eax, eax
jne 0x1007a38
mov eax, dword [ebp - 0x60c]
cmp eax, 1
je 0x100797f
cmp eax, 2
je 0x100797f
cmp eax, 7
jne 0x1007a38
mov ecx, dword [ebp - 0x618]
push 2
pop eax
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x608], eax
je 0x1007ef2
lea eax, [ebp - 0x618]
push eax
push dword [ebp - 0x608]
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [0x1019078]
mov dword [ebp - 0x610], ebx
call fcn.0100a0c1
test eax, eax
jne 0x1007a20
cmp dword [ebp - 0x60c], 7
jne 0x1007a0f
mov eax, dword [ebp - 0x608]
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x618]
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x644]
push eax
call fcn.0100dda0
test eax, eax
je 0x1007a0f
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x608], eax
push dword [ebp - 0x608]
call fcn.010075a7
mov dword [ebp - 0x610], eax
push dword [ebp - 0x608]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x610], ebx
jne 0x1007f94
push ebx
push dword [ebp - 0x69c]
push edi
push dword [0x1019064]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x69c], eax
jne 0x10078fd
push ebx
push 0x100778b
push dword [ebp - 0x61c]
xor edi, edi
push 0x6d
push dword [0x1019510]
inc edi
mov dword [0x1059dc4], edi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, ebx
mov dword [ebp - 0x624], eax
je 0x1007aa3
push ebx
push dword [ebp - 0x61c]
call dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push ebx
push 0xb
push dword [0x1019060]
mov dword [0x10190b4], edi
call esi
push ebx
push 9
mov edi, 0x110a
push edi
push dword [0x1019060]
lea eax, [ebp - 0x604]
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x628], ebx
mov word [ebp - 0x404], bx
mov dword [ebp - 0x66c], 0x49
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x658], 0x100
call esi
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x66c]
push eax
push ebx
push 0x113e
push dword [0x1019060]
call esi
push dword [ebp - 0x624]
call fcn.01007763
test eax, eax
je 0x100800b
cmp dword [ebp - 0x64c], ebx
je 0x1007bac
push dword [ebp - 0x668]
push 4
push edi
push dword [0x1019060]
call esi
cmp eax, ebx
jne 0x1007bc1
push dword [ebp - 0x668]
push dword [0x1019060]
call fcn.01008508
test eax, eax
je 0x1007bac
push dword [ebp - 0x668]
push 4
push edi
push dword [0x1019060]
call esi
cmp eax, ebx
je 0x1007bac
inc dword [ebp - 0x608]
jmp 0x1007bc1
push dword [ebp - 0x668]
push 3
push edi
push dword [0x1019060]
call esi
cmp eax, ebx
mov dword [ebp - 0x668], eax
je 0x1008001
cmp dword [ebp - 0x608], ebx
je 0x1007bac
dec dword [ebp - 0x608]
push eax
push 0x8001
push 0x1102
push dword [0x1019060]
call esi
push dword [ebp - 0x668]
push 1
push edi
push dword [0x1019060]
call esi
cmp eax, ebx
je 0x1007b6c
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x66c]
push eax
push ebx
push 0x113e
push dword [0x1019060]
call esi
test byte [0x10190c0], 2
je 0x1007bf9
lea eax, [ebp - 0x604]
push eax
call fcn.010075a7
test eax, eax
jne 0x1007f0b
test byte [0x10190c0], 0xc
je 0x1007ea1
push ebx
push 0x100
lea eax, [ebp - 0x604]
push eax
push dword [ebp - 0x668]
push dword [0x1019060]
call fcn.01008402
cmp eax, ebx
je 0x1007ea1
lea ecx, [ebp - 0x620]
push ecx
push 1
push ebx
lea ecx, [ebp - 0x604]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007ea1
mov eax, dword [0x10190c0]
and eax, 0xd
cmp al, 5
jne 0x1007c99
push ebx
push ebx
push ebx
push ebx
push 0x1019228
push dword [ebp - 0x620]
call fcn.0100a0c1
test eax, eax
jne 0x1007e8d
push 0x1019228
push 0x100
lea eax, [ebp - 0x404]
push eax
call fcn.010051cb
mov dword [ebp - 0x628], 1
jmp 0x1007e8d
lea eax, [ebp - 0x618]
push eax
push ebx
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x610], ebx
push ebx
jmp 0x1007e6f
inc dword [ebp - 0x610]
test byte [0x10190c0], 8
je 0x1007d0d
cmp dword [ebp - 0x60c], 1
je 0x1007cf1
cmp dword [ebp - 0x60c], 2
je 0x1007cf1
cmp dword [ebp - 0x60c], 7
je 0x1007cf1
xor eax, eax
jmp 0x1007cf4
push 2
pop eax
mov ecx, dword [ebp - 0x618]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x614], eax
jmp 0x1007d13
mov dword [ebp - 0x614], ebx
cmp dword [ebp - 0x614], ebx
jne 0x1007d28
test byte [0x10190c0], 8
jne 0x1007ef2
lea eax, [ebp - 0x618]
push eax
push dword [ebp - 0x614]
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x620]
call fcn.0100a0c1
test eax, eax
jne 0x1007e37
cmp dword [ebp - 0x614], ebx
je 0x1007d9c
cmp dword [ebp - 0x60c], 7
jne 0x1007d9c
mov eax, dword [ebp - 0x614]
mov dword [ebp - 0x640], eax
mov eax, dword [ebp - 0x618]
mov dword [ebp - 0x63c], eax
lea eax, [ebp - 0x644]
push eax
call fcn.0100dda0
test eax, eax
je 0x1007d9c
mov eax, dword [ebp - 0x640]
mov dword [ebp - 0x614], eax
test byte [0x10190c0], 4
je 0x1007db5
lea eax, [ebp - 0x204]
push eax
call fcn.010075a7
test eax, eax
jne 0x1007de8
test byte [0x10190c0], 8
je 0x1007e37
cmp dword [ebp - 0x60c], 1
je 0x1007dd9
cmp dword [ebp - 0x60c], 2
je 0x1007dd9
cmp dword [ebp - 0x60c], 7
jne 0x1007e37
push dword [ebp - 0x614]
call fcn.010075a7
test eax, eax
je 0x1007e37
cmp dword [ebp - 0x628], ebx
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
je 0x1007e22
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x1007e37
lea eax, [ebp - 0x204]
push eax
push 0x100
lea eax, [ebp - 0x404]
push eax
call fcn.010051cb
jmp 0x1007e37
push 0x100
push eax
call fcn.010051cb
mov dword [ebp - 0x628], 1
cmp dword [ebp - 0x614], ebx
je 0x1007e4b
push dword [ebp - 0x614]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x618]
push eax
push ebx
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x610]
push dword [ebp - 0x620]
mov dword [ebp - 0x634], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1007cc3
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x628], ebx
jne 0x1007f0b
push dword [ebp - 0x624]
call fcn.01007763
test eax, eax
jne 0x1007b15
cmp dword [ebp - 0x608], ebx
je 0x100800b
mov eax, dword [ebp - 0x668]
push eax
push 3
push edi
push dword [0x1019060]
call esi
dec dword [ebp - 0x608]
jne 0x1007ec6
push eax
push 0x8001
push 0x1102
push dword [0x1019060]
call esi
jmp 0x100800b
mov dword [ebp - 0x630], 1
mov dword [ebp - 0x610], 0x132
jmp 0x100800b
push dword [ebp - 0x668]
push ebx
push 0x1114
push dword [0x1019060]
call esi
push dword [ebp - 0x668]
push 9
push 0x110b
push dword [0x1019060]
call esi
cmp dword [ebp - 0x628], ebx
jne 0x1007f46
mov eax, dword [0x1019060]
jmp 0x1007ff9
push dword [ebp - 0x61c]
call fcn.01008f69
cmp word [ebp - 0x404], bx
jne 0x1007f62
mov dword [ebp - 0x69c], ebx
jmp 0x1007f94
lea eax, [ebp - 0x404]
mov dword [ebp - 0x6b4], eax
lea eax, [ebp - 0x6b8]
push eax
push 0xffffffffffffffff
push 0x1053
push dword [0x1019064]
mov dword [ebp - 0x6b8], 2
call esi
mov dword [ebp - 0x69c], eax
lea eax, [ebp - 0x6ec]
push eax
push 0xffffffffffffffff
mov edi, 0x102b
push edi
push dword [0x1019064]
mov dword [ebp - 0x6dc], 3
mov dword [ebp - 0x6e0], ebx
call esi
push 3
pop eax
mov dword [ebp - 0x6dc], eax
mov dword [ebp - 0x6e0], eax
lea eax, [ebp - 0x6ec]
push eax
push dword [ebp - 0x69c]
push edi
push dword [0x1019064]
call esi
push ebx
push dword [ebp - 0x69c]
push 0x1013
push dword [0x1019064]
call esi
mov eax, dword [0x1019064]
mov dword [ebp - 0x62c], eax
jmp 0x100800b
mov dword [ebp - 0x638], 1
push ebx
call fcn.010050ae
cmp dword [ebp - 0x624], ebx
je 0x1008046
push ebx
push 1
push 0xb
push dword [0x1019060]
mov dword [0x10190b4], ebx
call esi
push 1
push dword [ebp - 0x61c]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 0x624]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x62c], ebx
pop edi
pop esi
je 0x100805c
push dword [ebp - 0x62c]
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x630], ebx
je 0x1008084
movzx eax, word [ebp - 0x610]
push 0x10
push 0x10
push eax
push dword [ebp - 0x61c]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x14
cmp dword [ebp - 0x638], ebx
je 0x10080a6
push 0x40
push 0x10
push 0x29
push dword [ebp - 0x61c]
push dword [0x1019510]
call fcn.01009ee7
add esp, 0x14
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01016b82
leave
ret 8