Function at 0x12724876
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, ecx
or dword [ebx + 0xf1c], 0x20000000
mov dword [ebx + 4], eax
lea eax, [ebx + 0x1508]
mov dword [ebx + 0x204], eax
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebx + 0xf0c], esi
mov dword [ebx + 0xf08], esi
mov dword [ebx + 0xf9c], 1
mov dword [ebx + 0xfa0], ebx
mov dword [ebx + 0xf00], 0x12723bcc
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov eax, dword [eax + 4]
test dword [eax + 0xc], 0x4000
push edi
je 0x127248e9
or dword [ebx + 0xf04], 0x10
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [ebp + 0x1c], ecx
cmp ecx, esi
jne 0x12724900
lea eax, [ebx + 0xf98]
mov dword [ebx + 0x1504], eax
lea eax, [ebx + 0x1550]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0xf8c]
mov dword [eax], eax
mov dword [ebx + 0xf90], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xf80], esi
mov dword [ebx + 0xf84], esi
mov dword [ebx + 0xf54], esi
mov dword [ebx + 0xf50], esi
mov dword [ebx + 0xf94], esi
mov dword [ebx + 0x156c], esi
mov dword [ebx + 0x1568], esi
mov dword [ebx + 0x15bc], esi
mov dword [ebx + 0x15b0], esi
mov dword [ebx + 0x15b8], esi
mov dword [ebx + 0x158c], esi
mov dword [ebx + 0xe20], esi
mov dword [ebp - 0xc], esi
push 4
mov esi, eax
mov dword [ebp - 0x10], eax
pop ecx
mov edi, 0x12721800
xor eax, eax
mov dword [ebx + 0xf20], 0x12778e18
repe cmpsd dword [esi], dword es:[edi]
jne 0x127249f4
call fcn.1272db44
test eax, eax
je 0x127249f4
lea eax, [ebp + 0x14]
push eax
push 0x12721250
xor edi, edi
push 0x80000002
mov dword [ebp - 0xc], 1
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x127249f4
push 4
pop esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push 0x12721240
push dword [ebp + 0x14]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x127249eb
cmp dword [ebp - 0x20], esi
jne 0x127249eb
cmp dword [ebp - 0x18], edi
jne 0x127249eb
mov dword [ebp - 0xc], edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x12721800
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x12724a24
call fcn.1272db44
test eax, eax
je 0x12724a24
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
test byte [eax + 0x48], 4
je 0x12724a24
mov dword [ebp - 0x10], 0x12721820
push 0x6c
pop esi
push esi
lea eax, [ebp - 0x8c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x8c], esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x58]
test eax, eax
jne 0x12724dc6
test dword [ebp - 0x24], 0x2000
jne 0x12724a6a
mov eax, 0x88760064
jmp 0x12724dc6
mov edi, 0x20000
test dword [ebp - 0x24], edi
jne 0x12724a60
mov eax, 0x800
cmp dword [ebp - 0x80], eax
ja 0x12724dc1
cmp dword [ebp - 0x84], eax
ja 0x12724dc1
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
push esi
call dword [eax + 0x50]
test eax, eax
je 0x12724abc
mov ecx, 0x8876023c
cmp eax, ecx
je 0x12724aaf
mov eax, 0x80070057
jmp 0x12724dc6
cmp dword [ebp - 0x38], 0x10
jae 0x12724abc
mov eax, ecx
jmp 0x12724dc6
cmp dword [ebp + 0x1c], 0
je 0x12724acf
mov eax, dword [ebp - 8]
test eax, eax
je 0x12724acf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebx + 0xfd4], eax
mov eax, dword [esi]
push esi
mov dword [ebp - 0x1c], edi
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jge 0x12724afb
cmp edi, 0x887600ff
jne 0x12724bb8
cmp dword [ebp + 0x1c], 0
je 0x12724b0e
mov eax, dword [ebp - 4]
test eax, eax
je 0x12724b0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x10]
mov dword [ebx + 0xfd0], eax
lea edi, [ebx + 0xfa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, 0x12721860
jne 0x12724b32
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x1304]
push eax
lea esi, [ebx + 0x1300]
push esi
push ecx
call fcn.127371f3
mov edi, eax
test edi, edi
je 0x12724b76
cmp edi, 0x80004002
jne 0x12724bb8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
push dword [eax + 4]
lea eax, [ebx + 0x1304]
push eax
push esi
push dword [ebp + 8]
call fcn.1272e7d0
mov edi, eax
test edi, edi
jne 0x12724bb8
and dword [ebp + 0x14], 0
push 4
lea eax, [ebp + 0x14]
push eax
push 0x1272122c
push 4
call fcn.1273beed
add esp, 0x10
test eax, eax
je 0x12724bf1
cmp dword [ebp + 0x14], 0
je 0x12724bf1
push 0
push dword [esi]
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 4]
push dword [eax + 4]
push dword [ebp + 8]
call fcn.1272e4a8
mov edi, eax
test edi, edi
je 0x12724bf4
mov eax, dword [ebp - 4]
xor esi, esi
cmp eax, esi
je 0x12724bd2
cmp dword [ebp + 0x1c], esi
jne 0x12724bcc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0xfd0], esi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x12724bea
cmp dword [ebp + 0x1c], esi
jne 0x12724be4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 0xfd4], esi
mov eax, edi
jmp 0x12724dc6
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.12724430
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x12724bb8
push dword [ebp - 0x10]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.12789f4c
mov edi, eax
test edi, edi
jl 0x12724bb8
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [esi + 0x50]
push ebx
call fcn.12789f4c
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x12724bb8
test byte [ebx + 0xf1c], 8
je 0x12724c4e
cmp dword [ebx + 0xf58], 2
jl 0x12724c4e
mov eax, dword [ebx + 0x1590]
jmp 0x12724c59
push 0x400
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
push esi
mov ecx, ebx
mov dword [ebx + 0x15d0], eax
mov dword [ebx + 0xea0], eax
call fcn.12723a58
mov edi, eax
test edi, edi
jne 0x12724bb8
mov eax, dword [ebx + 0xfb8]
add eax, 0xac
cmp dword [eax], edi
jne 0x12724c8c
mov dword [eax], 0x400
push 0x10000
push ebx
lea ecx, [ebx + 0xf30]
call fcn.12722eda
test eax, eax
jne 0x12724d46
push 0x1000
lea ecx, [ebx + 0xf24]
call fcn.12722d9c
test eax, eax
jne 0x12724d46
push 0xd80
push ebx
lea ecx, [ebx + 0xddc]
call fcn.12722ded
test eax, eax
jne 0x12724d46
push 0xc8
push ebx
lea ecx, [ebx + 0xde8]
call fcn.12722ded
test eax, eax
jne 0x12724d46
mov eax, dword [0x1277baa4]
shl eax, 3
push eax
lea eax, [ebx + 0x15c8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x12724d46
mov eax, dword [0x1277ba98]
imul eax, eax, 6
shr eax, 5
push eax
lea esi, [ebx + 0x15a4]
push esi
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x12724d46
mov edi, dword [esi]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x1590]
mov dword [ebx + 0x15ac], eax
mov eax, dword [0x1277ba94]
shl eax, 3
push eax
lea eax, [ebx + 0x15a8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
je 0x12724d50
mov edi, 0x8007000e
jmp 0x12724bb8
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push ebx
call fcn.12723af2
mov edi, eax
mov esi, 0x8007000e
pop ecx
pop ecx
cmp edi, esi
je 0x12724bb8
mov eax, dword [ebp - 4]
test eax, eax
je 0x12724d98
push dword [eax + 4]
push ebx
call fcn.12723af2
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
jne 0x12724d98
mov eax, dword [ebp + 0x10]
push dword [eax + 4]
push ebx
call fcn.12723b7b
pop ecx
pop ecx
jmp 0x12724bb8
xor eax, eax
cmp dword [ebp - 4], eax
mov ecx, ebx
setne al
push eax
call fcn.12723103
mov edi, eax
test edi, edi
jl 0x12724bb8
mov eax, dword [ebp + 0x18]
add ebx, 0xf98
mov dword [eax], ebx
xor eax, eax
jmp 0x12724dc6
mov eax, 0x88760082
pop edi
pop esi
pop ebx
leave
ret 0x18