Function at 0x74005150
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x7404aef4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, ecx
mov dword [ebp - 0xa4], eax
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x80], eax
or dword [ebx + 0xf1c], 0x20000000
mov dword [ebx + 0xf0c], eax
mov dword [ebx + 0xf08], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebx + 0x1508]
mov dword [ebx + 0xf9c], 1
mov dword [ebx + 0xfa0], ebx
mov dword [ebx + 0x204], eax
mov dword [ebx + 0xf00], 0x74004ee0
mov eax, dword [esi + 0x50]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x7c], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x88], edi
test dword [eax + 0xc], 0x4000
je 0x740051e8
or dword [ebx + 0xf04], 0x10
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x740051f5
lea eax, [ebx + 0xf98]
mov dword [ebx + 0x1504], eax
lea eax, [ebx + 0x1550]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, dword [ebp - 0x78]
lea eax, [ebx + 0xf8c]
xor ecx, ecx
mov dword [eax], eax
mov dword [ebx + 0xf80], ecx
mov dword [ebx + 0xf84], ecx
mov dword [ebx + 0xf90], eax
mov dword [ebx + 0xf54], ecx
mov dword [ebx + 0xf50], ecx
mov dword [ebx + 0xf94], ecx
mov dword [ebx + 0x156c], ecx
mov dword [ebx + 0x1568], ecx
mov dword [ebx + 0x15bc], ecx
mov dword [ebx + 0x15b0], ecx
mov dword [ebx + 0x15b8], ecx
mov dword [ebx + 0x158c], ecx
mov dword [ebx + 0xe20], ecx
mov dword [ebx + 0xf20], 0x7404aed8
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x84], ecx
mov eax, dword [edx + ecx*4]
mov edi, 0x74002608
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp - 0x88]
jne 0x7400532d
inc ecx
cmp ecx, 4
jne 0x74005279
call fcn.74011970
test eax, eax
je 0x7400532a
and dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
push eax
push 0x740024c4
push 0x80000002
mov dword [ebp - 0x84], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7400532a
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 4
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0x740024e8
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7400531e
cmp dword [ebp - 0x98], 4
jne 0x7400531e
mov eax, dword [ebp - 0x9c]
neg eax
sbb eax, eax
and dword [ebp - 0x84], eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x78]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
mov esi, 0x74002608
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x7c]
jne 0x74005364
inc ecx
cmp ecx, 4
jne 0x7400532f
call fcn.74011970
test eax, eax
je 0x74005364
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 4]
test byte [eax + 0x48], 4
je 0x74005364
mov dword [ebp - 0x90], 0x74002628
push 0x68
lea eax, [ebp - 0x6c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
add esp, 0xc
mov dword [ebp - 0x70], 0x6c
mov esi, dword [eax + 0x58]
lea eax, [ebp - 0x70]
push eax
push edi
mov ecx, esi
call dword [0x74051130]
call esi
test eax, eax
jne 0x74005795
test dword [ebp - 8], 0x2000
je 0x74005790
test dword [ebp - 8], 0x20000
jne 0x74005790
mov eax, 0x800
cmp dword [ebp - 0x64], eax
ja 0x74005789
cmp dword [ebp - 0x68], eax
ja 0x74005789
mov eax, dword [edi]
mov esi, dword [eax + 0x50]
lea eax, [ebp - 0x80]
push eax
push edi
mov ecx, esi
call dword [0x74051130]
call esi
test eax, eax
je 0x74005400
mov ecx, 0x8876023c
cmp eax, ecx
je 0x740053f3
mov eax, 0x80070057
jmp 0x74005795
cmp dword [ebp - 0x1c], 0x10
jae 0x74005400
mov eax, ecx
jmp 0x74005795
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 0x80]
je 0x74005420
test ecx, ecx
je 0x74005420
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74051130]
call esi
mov ecx, dword [ebp - 0x80]
mov dword [ebx + 0xfd4], ecx
mov eax, dword [edi]
mov dword [ebp - 0xa0], 0x20000
mov esi, dword [eax + 0x30]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
push edi
call dword [0x74051130]
call esi
mov edi, eax
test edi, edi
jns 0x7400545d
cmp edi, 0x887600ff
jne 0x740054ef
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 0x74]
je 0x7400547d
test ecx, ecx
je 0x7400547d
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74051130]
call esi
mov ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x84], 0
lea edi, [ebx + 0xfa4]
mov esi, dword [ebp - 0x90]
lea edx, [ebx + 0x1304]
mov dword [ebx + 0xfd0], ecx
mov ecx, 0x740025f8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x740054aa
mov ecx, dword [ebp - 0x78]
push edx
lea edx, [ebx + 0x1300]
call fcn.7401a6ab
mov edi, eax
test edi, edi
je 0x74005540
cmp edi, 0x80004002
jne 0x740054ef
mov esi, dword [ebp - 0x7c]
lea edx, [ebx + 0x1300]
mov ecx, dword [ebp - 0x78]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 4]
push dword [eax + 4]
lea eax, [ebx + 0x1304]
push eax
call fcn.74015ef8
mov edi, eax
test edi, edi
je 0x74005543
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x74005514
cmp dword [ebp + 0x14], 0
jne 0x7400550c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74051130]
call esi
xor eax, eax
mov dword [ebx + 0xfd0], eax
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x74005539
cmp dword [ebp + 0x14], 0
jne 0x74005531
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74051130]
call esi
xor eax, eax
mov dword [ebx + 0xfd4], eax
mov eax, edi
jmp 0x74005795
mov esi, dword [ebp - 0x7c]
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push 4
push eax
push 4
mov edx, 0x740024f8
pop ecx
call fcn.7401f25a
pop ecx
pop ecx
test eax, eax
je 0x74005588
cmp dword [ebp - 0x7c], 0
je 0x74005588
push ecx
lea eax, [ebx + 0x1300]
push dword [eax]
push eax
mov eax, dword [esi + 0x50]
mov edx, dword [eax + 4]
mov edx, dword [edx + 4]
call fcn.740166d8
mov edi, eax
test edi, edi
jne 0x740054ef
mov edx, esi
mov ecx, ebx
call fcn.74004879
mov edi, eax
test edi, edi
jne 0x740054ef
push dword [ebp - 0x90]
mov ecx, ebx
push dword [ebp - 0x74]
push dword [ebp - 0x88]
call fcn.7400462f
mov edi, eax
test edi, edi
js 0x740054ef
mov edx, dword [esi + 0x50]
push ecx
push dword [ebp - 0x74]
mov ecx, ebx
push dword [ebp - 0x88]
call fcn.74009ac6
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x740054ef
test byte [ebx + 0xf1c], 8
je 0x740055f6
cmp dword [ebx + 0xf58], 2
jl 0x740055f6
mov eax, dword [ebx + 0x1590]
jmp 0x74005601
push 0x400
call fcn.7404041f
pop ecx
mov dword [ebx + 0x15d0], eax
lea ecx, [esi + 0x10]
mov dword [ebx + 0xea0], eax
lea edx, [ebx + 0xf7c]
mov eax, dword [ecx]
mov dword [edx], eax
test eax, eax
je 0x74005626
mov eax, dword [ecx]
mov dword [eax + 0xf78], edx
mov dword [ecx], ebx
xor edi, edi
mov dword [ebx + 0xf78], ecx
mov dword [ebx + 0xf74], esi
inc dword [esi + 0xc]
mov eax, dword [ebx + 0xfb8]
cmp dword [eax + 0xac], edi
jne 0x74005651
mov dword [eax + 0xac], 0x400
push 0x10000
push ebx
lea ecx, [ebx + 0xf30]
call fcn.74003835
test eax, eax
je 0x74005670
mov edi, 0x8007000e
jmp 0x740054ef
push 0x1000
lea ecx, [ebx + 0xf24]
call fcn.740036af
test eax, eax
jne 0x74005666
push 0xd80
push ebx
lea ecx, [ebx + 0xddc]
call fcn.74003700
test eax, eax
jne 0x74005666
push 0xc8
push ebx
lea ecx, [ebx + 0xde8]
call fcn.74003700
test eax, eax
jne 0x74005666
mov eax, dword [0x7404cb90]
shl eax, 3
push eax
lea eax, [ebx + 0x15c8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005666
imul eax, dword [0x7404cb8c], 6
lea esi, [ebx + 0x15a4]
shr eax, 5
push eax
push esi
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005666
mov eax, dword [esi]
mov dword [eax], edi
mov word [eax + 4], di
mov eax, dword [ebx + 0x1590]
mov dword [ebx + 0x15ac], eax
mov eax, dword [0x7404cb88]
shl eax, 3
push eax
lea eax, [ebx + 0x15a8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005666
mov esi, dword [ebp - 0x88]
mov ecx, ebx
mov edx, dword [esi + 4]
call fcn.74004e1e
mov edi, eax
cmp edi, 0x8007000e
je 0x740054ef
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x7400575e
mov edx, dword [ecx + 4]
mov ecx, ebx
call fcn.74004e1e
mov edi, eax
cmp edi, 0x8007000e
jne 0x7400575b
mov edx, dword [esi + 4]
mov ecx, ebx
call fcn.74004e9d
jmp 0x740054ef
mov ecx, dword [ebp - 0x74]
xor eax, eax
test ecx, ecx
mov ecx, ebx
setne al
push eax
call fcn.74003a5b
mov edi, eax
test edi, edi
js 0x740054ef
mov ecx, dword [ebp - 0xa4]
lea eax, [ebx + 0xf98]
mov dword [ecx], eax
xor eax, eax
jmp 0x74005795
mov eax, 0x88760082
jmp 0x74005795
mov eax, 0x88760064
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.740409a0
leave
ret 0x18