Function at 0x10012680
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc14
mov eax, dword [0x100a70b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20c
lea eax, [ebp - 0x258]
mov dword [ebp - 0xac0], 0
push 0
push eax
mov ebx, edx
mov dword [ebp - 0xabc], 0
mov esi, ecx
mov dword [ebp - 0xab4], 0
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0xb30]
add esp, 0xc
mov dword [ebx + 0x90], 0
test eax, eax
jne 0x10012744
lea eax, [ebp - 0xa84]
mov dword [ebp - 0xa84], esi
mov esi, dword [0x100a853c]
mov ecx, esi
push eax
call dword [0x100ad4e8]
call esi
mov esi, eax
test esi, esi
jns 0x10012726
mov ecx, ebx
call fcn.10013440
mov ecx, esi
call fcn.100174f0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa80]
mov dword [ebx + 0xb30], eax
mov eax, dword [ebp - 0xa74]
mov dword [ebx + 0xb3c], eax
mov eax, dword [ebx + 0xb30]
mov esi, dword [0x100a8500]
mov ecx, esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], 0x20c
mov dword [ebp - 0x258], 0
call dword [0x100ad4e8]
call esi
test eax, eax
js 0x10013362
xor eax, eax
mov word [ebp - 0x4e], ax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x680], eax
test eax, eax
jne 0x100127d2
mov ecx, ebx
call fcn.10013440
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x241
neg eax
sbb eax, eax
and eax, 0xfff93dc4
add eax, 0x80070241
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xb30]
mov esi, dword [0x100a8500]
mov ecx, esi
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0xab4]
mov dword [ebp - 0xa64], eax
lea eax, [ebp - 0xa6c]
push eax
mov dword [ebp - 0xa68], 0xb
mov dword [ebp - 0xa60], 4
call dword [0x100ad4e8]
call esi
test eax, eax
js 0x10012826
cmp dword [ebp - 0xab4], 0
jne 0x10013362
push 0x1000439c
push dword [ebx + 0x680]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0xa70], edi
test edi, edi
je 0x10013362
mov edx, dword [0x100a84d4]
mov esi, 0xc0000001
mov dword [ebp - 0xa5c], edx
test edx, edx
je 0x10012707
mov eax, dword [ebx + 0xb30]
xor ecx, ecx
mov dword [ebp - 0xa88], ecx
mov dword [ebp - 0xa84], ecx
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa7c], ecx
mov dword [ebp - 0xa78], ecx
mov dword [ebp - 0xa74], ecx
mov dword [ebp - 0xa8c], ecx
or ecx, 1
mov dword [ebp - 0xa94], eax
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa90], ecx
mov ecx, edx
push eax
call dword [0x100ad4e8]
call dword [ebp - 0xa5c]
mov ecx, dword [ebp - 0xa8c]
mov esi, eax
mov dword [ebx], ecx
test esi, esi
js 0x10012707
push 0x7fc
lea eax, [ebp - 0xa58]
mov dword [ebp - 0xb0c], 0x10010c80
push 0
push eax
mov dword [ebp - 0xb08], 0x1000fb90
mov dword [ebp - 0xb04], 0x10010ce0
mov dword [ebp - 0x20], 0x5002
mov dword [ebp - 0x1c], 0x5001
mov dword [ebp - 0x18], 0x4002
mov dword [ebp - 0x14], 0x3004
mov dword [ebp - 0x10], 0x2003
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0xb34]
add esp, 0xc
mov dword [ebp - 0xa50], eax
mov eax, dword [ebx + 0xb38]
mov dword [ebp - 0xa4c], eax
mov eax, dword [ebx + 0xb3c]
mov dword [ebp - 0xa48], eax
lea eax, [ebp - 0xa58]
push eax
mov dword [ebp - 0xa58], 0xfffffffe
mov dword [ebp - 0xa54], 0x7fc
call dword [sym.imp.USER32.dll_DisplayConfigGetDeviceInfo]
test eax, eax
jne 0x1001299a
cmp dword [ebp - 0x700], 0x4b0
lea eax, [ebp - 0x718]
jne 0x1001299c
mov ecx, dword [ebp - 0x714]
cmp ecx, 0x1002
je 0x10012990
cmp ecx, 0x4d4f4351
jne 0x1001299c
mov eax, dword [eax + 0x18]
mov esi, 3
jmp 0x100129ac
xor eax, eax
xor esi, esi
test eax, eax
je 0x100129a7
mov eax, dword [eax + 0x18]
jmp 0x100129ac
mov eax, 0x3e8
xor ecx, ecx
cmp eax, 0x4b0
mov eax, dword [ebx + 0x8c]
setge cl
and eax, 0xffffffbf
dec ecx
and ecx, 0x40
or ecx, eax
mov dword [ebx + 0x8c], ecx
lea ecx, [ebx + 0x8c8]
jmp 0x100129d9
mov edi, dword [ebp - 0xa70]
mov eax, dword [ebx + 0xb30]
mov dword [ebp - 0xa88], eax
mov eax, dword [ebp + esi*4 - 0x20]
mov dword [ebp - 0xa5c], eax
mov dword [ebp - 0xa80], eax
lea eax, [ebp - 0xb0c]
mov dword [ebp - 0xa7c], eax
lea eax, [ebp - 0xa88]
mov dword [ebp - 0xa78], ecx
mov ecx, edi
push eax
mov dword [ebp - 0xa84], 8
mov dword [ebp - 0xa74], 0
call dword [0x100ad4e8]
call edi
mov edi, eax
test edi, edi
jns 0x10012a40
inc esi
lea ecx, [ebx + 0x8c8]
cmp esi, 5
jb 0x100129d3
jmp 0x10012a58
mov eax, dword [ebp - 0xa88]
mov dword [ebx + 0xb1c], eax
mov eax, dword [ebp - 0xa74]
mov dword [ebx + 0x1184], eax
test edi, edi
jns 0x10012a76
mov ecx, ebx
call fcn.10013440
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
and dword [ebx + 0x8c], 0xffffffdf
cmp dword [ebx + 0x1184], 1
jbe 0x10012adb
mov dword [ebx + 0x1174], 0
mov dword [ebx + 0x1178], 0
mov dword [ebp - 0xaf0], 0
mov dword [ebp - 0xaec], 0
mov dword [ebp - 0xae8], 0
mov dword [ebp - 0xae4], 0
mov dword [ebp - 0xae0], 0
mov dword [ebp - 0xadc], 0
jmp 0x10012c42
push 0x30
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10012b08
mov ecx, ebx
call fcn.10013440
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
mov esi, dword [0x100a8514]
mov ecx, esi
mov dword [ebp - 0xab0], eax
lea eax, [ebp - 0xab0]
push eax
mov dword [ebp - 0xaac], 0
mov dword [ebp - 0xaa8], 0
mov dword [ebp - 0xaa4], 0
mov dword [ebp - 0xaa0], 0
mov dword [ebp - 0xa9c], 0
mov dword [ebp - 0xa98], 8
call dword [0x100ad4e8]
call esi
mov esi, eax
test esi, esi
js 0x10012707
mov dword [edi + 0x28], 0
test byte [ebx + 0x8c], 0x20
mov eax, dword [ebp - 0xa90]
mov dword [ebp - 0xaf0], eax
mov eax, dword [ebp - 0xa8c]
mov dword [ebp - 0xaec], eax
mov eax, dword [ebp - 0xa88]
mov dword [ebp - 0xae8], eax
mov eax, dword [ebp - 0xa84]
mov dword [ebp - 0xae4], eax
mov eax, dword [ebp - 0xa80]
mov dword [ebp - 0xae0], eax
mov eax, dword [ebp - 0xa7c]
mov dword [ebx + 0x1174], edi
mov dword [ebx + 0x1178], edi
mov dword [ebp - 0xadc], eax
je 0x10012be9
mov eax, dword [ebp - 0xa78]
mov dword [ebp - 0xad0], eax
mov eax, dword [ebp - 0xa74]
mov dword [ebp - 0xacc], eax
mov eax, dword [ebp - 0xa94]
mov dword [edi], eax
mov eax, dword [ebp - 0xa90]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xa8c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xa88]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xa84]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0xa80]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0xa7c]
mov dword [edi + 0x18], eax
test byte [ebx + 0x8c], 0x20
je 0x10012c42
mov eax, dword [ebp - 0xa78]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0xa74]
mov dword [edi + 0x24], eax
push 0xfc
lea eax, [ebp - 0xc10]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edi, [ebx + 0x68c]
push 0x23c
push 0
push edi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xa5c]
add esp, 0xc
mov esi, dword [ebx + 0x8cc]
mov ecx, esi
and dword [ebp - 0xad4], 2
mov dword [ebp - 0xaf8], eax
lea eax, [ebp - 0xc10]
mov dword [ebp - 0xaf4], eax
lea eax, [ebp - 0xb00]
push eax
push dword [ebx + 0xb1c]
mov dword [ebp - 0xc10], 0x10010690
mov dword [ebp - 0xc0c], 0x10010790
mov dword [ebp - 0xc08], 0x10010a80
mov dword [ebp - 0xc04], 0x10010b20
mov dword [ebp - 0xbf8], 0x1000f6c0
mov dword [ebp - 0xc00], 0x10010070
mov dword [ebp - 0xbfc], 0x10010210
mov dword [ebp - 0xbf4], 0x100103c0
mov dword [ebp - 0xbf0], 0x100105a0
mov dword [ebp - 0xbec], 0x10010d70
mov dword [ebp - 0xbd8], 0x10010e30
mov dword [ebp - 0xbd4], 0x10011010
mov dword [ebp - 0xbd0], 0x100110e0
mov dword [ebp - 0xbcc], 0x10011250
mov dword [ebp - 0xbc8], 0x100112c0
mov dword [ebp - 0xbc4], 0x10011440
mov dword [ebp - 0xbc0], 0
mov dword [ebp - 0xbe8], 0
mov dword [ebp - 0xbe4], 0
mov dword [ebp - 0xbe0], 0
mov dword [ebp - 0xbdc], 0
mov dword [ebp - 0xbbc], 0x10010170
mov dword [ebp - 0xbb0], 0x10011180
mov dword [ebp - 0xbac], 0x10011370
mov dword [ebp - 0xba8], 0x100114f0
mov dword [ebp - 0xbb8], 0x10011760
mov dword [ebp - 0xbb4], 0x100117a0
mov dword [ebp - 0xb9c], 0x100118d0
mov dword [ebp - 0xb98], 0x10011970
mov dword [ebp - 0xb94], 0x10011a50
mov dword [ebp - 0xb90], 0x10011ae0
mov dword [ebp - 0xb8c], 0x10011b70
mov dword [ebp - 0xb88], 0x10011c10
mov dword [ebp - 0xb54], 0x10011ca0
mov dword [ebp - 0xb84], 0x10011d90
mov dword [ebp - 0xb80], 0x10011e30
mov dword [ebp - 0xb7c], 0x10011ea0
mov dword [ebp - 0xb78], 0x10011f30
mov dword [ebp - 0xb74], 0x10011f80
mov dword [ebp - 0xb6c], 0x10012050
mov dword [ebp - 0xb70], 0x10012120
mov dword [ebp - 0xb68], 0x10012200
mov dword [ebp - 0xb64], 0x10012290
mov dword [ebp - 0xb60], 0x10012350
mov dword [ebp - 0xb5c], 0x10012460
mov dword [ebp - 0xb58], 0x10010850
mov dword [ebp - 0xb50], 0x10010a60
mov dword [ebp - 0xb4c], 0x10011ff0
mov dword [ebp - 0xb48], 0x100119f0
mov dword [ebp - 0xb44], fcn.10011620
mov dword [ebp - 0xb40], 0x10010a60
mov dword [ebp - 0xb00], ebx
mov dword [ebp - 0xafc], 8
mov dword [ebp - 0xad8], edi
call dword [0x100ad4e8]
call esi
mov esi, eax
test esi, esi
js 0x10013395
mov ecx, dword [ebx + 0x1184]
cmp ecx, 0x4001
jb 0x10012f24
cmp dword [ebx + 0x8a4], 0
je 0x10012f24
cmp dword [ebx + 0x8a0], 0
je 0x10012f24
cmp dword [ebx + 0x8a8], 0
je 0x10012f24
cmp dword [ebx + 0x89c], 0
je 0x10012f24
cmp dword [ebx + 0x8ac], 0
je 0x10012f24
cmp ecx, 0x4001
jbe 0x10012f1d
cmp dword [ebx + 0x8b4], 0
je 0x10012f24
cmp dword [ebx + 0x8b8], 0
je 0x10012f24
mov edx, 1
jmp 0x10012f26
xor edx, edx
xor eax, eax
mov dword [ebx + 0x1188], edx
cmp ecx, 0x4002
jb 0x10012fd3
cmp dword [edi + 0x44], eax
jne 0x10012f4b
cmp dword [edi + 0x1e8], eax
je 0x10012f4b
xor ecx, ecx
jmp 0x10012f50
mov ecx, 1
cmp dword [edi + 0x48], eax
jne 0x10012f61
cmp dword [edi + 0x1ec], eax
je 0x10012f61
xor eax, eax
jmp 0x10012f66
mov eax, 1
cmp dword [edi + 0x40], 0
jne 0x10012f79
cmp dword [edi + 0x1e4], 0
je 0x10012f79
or eax, ecx
jmp 0x10012f7e
mov eax, 1
cmp dword [edi + 0x94], 0
jne 0x10012f94
cmp dword [edi + 0x200], 0
je 0x10012f94
xor ecx, ecx
jmp 0x10012f99
mov ecx, 1
or eax, ecx
test edx, edx
je 0x10012fd3
cmp dword [edi + 0xa4], 0
jne 0x10012fb1
cmp dword [edi + 0x210], 0
jne 0x10012fb6
mov eax, 1
cmp dword [edi + 0xa0], 0
jne 0x10012fcc
cmp dword [edi + 0x220], 0
je 0x10012fcc
xor ecx, ecx
jmp 0x10012fd1
mov ecx, 1
or eax, ecx
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10013395
mov eax, dword [ebp - 0xb00]
mov esi, dword [0x100a8500]
mov ecx, esi
mov dword [ebx + 0x684], eax
mov eax, dword [ebx + 0xb30]
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0xa64], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xa6c]
push eax
mov dword [ebp - 0xa68], 3
mov dword [ebp - 0xa60], 0x18
call dword [0x100ad4e8]
call esi
test eax, eax
js 0x1001337f
mov edi, dword [ebp - 0x38]
add edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
adc eax, dword [ebp - 0x3c]
add edi, dword [ebp - 0x48]
adc eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
jne 0x10013072
cmp edi, 0x7fff0000
jbe 0x1001311a
lea eax, [ebp - 0xa70]
mov dword [ebp - 0xa5c], 0
push eax
push 0x100040c0
push 0x80000002
mov esi, 0xffff0000
mov dword [ebp - 0xac4], 4
mov dword [ebp - 0xa70], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10013105
lea eax, [ebp - 0xac4]
push eax
lea eax, [ebp - 0xa5c]
push eax
lea eax, [ebp - 0xac8]
push eax
push 0
push 0x1000438c
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa70]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10013100
cmp dword [ebp - 0xac8], 4
jne 0x10013100
cmp dword [ebp - 0xa5c], esi
mov esi, 0x7fff0000
jne 0x10013105
mov esi, 0xffff0000
cmp dword [ebp - 0x10], 0
jb 0x1001311a
ja 0x10013111
cmp edi, esi
jb 0x1001311a
mov edi, esi
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0xb30]
mov esi, dword [0x100a8500]
mov ecx, esi
mov dword [ebp - 0xa6c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xa64], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xa6c]
push eax
mov dword [ebx + 0x1148], edi
mov dword [ebx + 0x114c], 0
mov dword [ebp - 0xa68], 5
mov dword [ebp - 0xa60], 0xc
call dword [0x100ad4e8]
call esi
test eax, eax
js 0x10013344
mov eax, dword [ebp - 0x2c]
mov edx, 0x100043a8
mov dword [ebx + 0x1160], eax
mov ecx, 0xb
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x1164], eax
mov eax, dword [ebp - 0x24]
and eax, 1
mov dword [ebx + 0x1168], eax
lea eax, [ebp - 0xac0]
push 8
push eax
call fcn.10048490
add esp, 8
test eax, eax
jne 0x100131ca
mov dword [ebp - 0xac0], 0x2000000
mov dword [ebp - 0xabc], eax
mov eax, dword [ebx + 0x1148]
lea edi, [ebx + 0x8d4]
mov dword [ebx + 0x1150], eax
lea esi, [ebx + 0x68c]
mov eax, dword [ebx + 0x114c]
mov ecx, 0x8f
mov dword [ebx + 0x1154], eax
mov eax, dword [ebx + 0x8c8]
mov dword [ebx + 0xb10], eax
mov eax, dword [ebx + 0x8cc]
mov dword [ebx + 0xb14], eax
mov eax, dword [ebx + 0x8d0]
mov dword [ebx + 0xb18], eax
mov eax, dword [ebx + 0xb30]
mov dword [ebp - 0xa6c], eax
lea eax, [ebx + 0x119c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x100a8500]
mov ecx, esi
mov dword [ebp - 0xa64], eax
lea eax, [ebp - 0xa6c]
push eax
mov dword [ebp - 0xa68], 0xf
mov dword [ebp - 0xa60], 4
call dword [0x100ad4e8]
call esi
test eax, eax
js 0x10013362
mov eax, dword [ebx + 0xb30]
mov esi, dword [0x100a8500]
mov ecx, esi
mov dword [ebp - 0xa6c], eax
lea eax, [ebx + 0x1190]
mov dword [ebp - 0xa64], eax
lea eax, [ebp - 0xa6c]
push eax
mov dword [ebp - 0xa68], 0x11
mov dword [ebp - 0xa60], 0xc
call dword [0x100ad4e8]
call esi
test eax, eax
js 0x10013362
cmp dword [ebx + 0x684], 0
mov dword [ebx + 0x11a0], 0
je 0x10013331
cmp dword [ebx + 0x8bc], 0
je 0x10013331
mov esi, dword [0x100a8554]
xor eax, eax
mov dword [ebp - 0xa74], eax
mov ecx, esi
mov eax, dword [ebx + 0xb34]
mov dword [ebp - 0xa88], eax
mov eax, dword [ebx + 0xb38]
mov dword [ebp - 0xa84], eax
mov eax, dword [ebx]
mov dword [ebp - 0xa80], eax
lea eax, [ebp - 0xa88]
push eax
mov dword [ebp - 0xa7c], 0x10012620
mov dword [ebp - 0xa78], ebx
call dword [0x100ad4e8]
call esi
test eax, eax
jns 0x10013325
mov ecx, ebx
call fcn.10013440
mov eax, dword [ebp - 0xa74]
mov dword [ebx + 0x11a8], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1160], 0
mov dword [ebx + 0x1164], 0
mov dword [ebx + 0x1168], 0
mov ecx, ebx
call fcn.10013440
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x1148], 0
mov dword [ebx + 0x114c], 0
jmp 0x10013362
cmp esi, 0x88760870
jne 0x100133a2
mov esi, 0x80004005
mov ecx, ebx
call fcn.10013440
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret