Function at 0x74005060
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x74049f04]
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 - 0x84], 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], 0x74004df0
mov eax, dword [esi + 0x50]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x80], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x8c], edi
test dword [eax + 0xc], 0x4000
je 0x740050fb
or dword [ebx + 0xf04], 0x10
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x74005108
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], 0x74049ee8
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x88], ecx
mov eax, dword [edx + ecx*4]
mov edi, 0x740025f8
cmp eax, dword [edi + ecx*4]
mov edi, dword [ebp - 0x8c]
jne 0x74005230
inc ecx
cmp ecx, 4
jne 0x7400518c
call fcn.7401131a
test eax, eax
je 0x7400522d
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push eax
push 0x740024b4
push 0x80000002
mov dword [ebp - 0x88], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x7400522d
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 0x740024d8
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x74005224
cmp dword [ebp - 0x98], 4
jne 0x74005224
mov eax, dword [ebp - 0x9c]
neg eax
sbb eax, eax
and dword [ebp - 0x88], eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x78]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
mov esi, 0x740025f8
cmp eax, dword [esi + ecx*4]
mov esi, dword [ebp - 0x80]
jne 0x74005267
inc ecx
cmp ecx, 4
jne 0x74005232
call fcn.7401131a
test eax, eax
je 0x74005267
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 4]
test byte [eax + 0x48], 4
je 0x74005267
mov dword [ebp - 0x90], 0x74002618
push 0x68
lea eax, [ebp - 0x6c]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [edi]
lea ecx, [ebp - 0x70]
add esp, 0xc
mov dword [ebp - 0x70], 0x6c
mov esi, dword [eax + 0x58]
push ecx
push edi
mov ecx, esi
call dword [0x74050130]
call esi
test eax, eax
jne 0x74005692
test dword [ebp - 8], 0x2000
je 0x7400568d
test dword [ebp - 8], 0x20000
jne 0x7400568d
mov eax, 0x800
cmp dword [ebp - 0x64], eax
ja 0x74005686
cmp dword [ebp - 0x68], eax
ja 0x74005686
mov eax, dword [edi]
lea ecx, [ebp - 0x84]
push ecx
push edi
mov esi, dword [eax + 0x50]
mov ecx, esi
call dword [0x74050130]
call esi
test eax, eax
je 0x74005306
mov ecx, 0x8876023c
cmp eax, ecx
je 0x740052f9
mov eax, 0x80070057
jmp 0x74005692
cmp dword [ebp - 0x1c], 0x10
jae 0x74005306
mov eax, ecx
jmp 0x74005692
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 0x84]
je 0x7400532c
test ecx, ecx
je 0x7400532c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74050130]
call esi
mov ecx, dword [ebp - 0x84]
mov dword [ebx + 0xfd4], ecx
lea eax, [ebp - 0x74]
mov esi, dword [edi]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x20000
push eax
mov ecx, dword [esi + 0x30]
push edi
call dword [0x74050130]
call dword [esi + 0x30]
mov edi, eax
test edi, edi
jns 0x74005368
cmp edi, 0x887600ff
jne 0x74005432
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 0x74]
je 0x74005388
test ecx, ecx
je 0x74005388
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74050130]
call esi
mov ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x88], 0
lea edi, [ebx + 0xfa4]
mov esi, dword [ebp - 0x90]
mov dword [ebx + 0xfd0], ecx
mov ecx, 0x740025e8
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 0x740053af
mov ecx, dword [ebp - 0x78]
lea eax, [ebx + 0x1304]
lea esi, [ebx + 0x1300]
push eax
mov edx, esi
call fcn.74019ce5
mov edi, eax
test edi, edi
je 0x740053f4
cmp edi, 0x80004002
jne 0x74005432
mov eax, dword [ebp - 0x80]
mov edx, esi
mov ecx, dword [ebp - 0x78]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 4]
push dword [eax + 4]
lea eax, [ebx + 0x1304]
push eax
call fcn.74015722
mov edi, eax
test edi, edi
jne 0x74005432
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push 4
push eax
push 4
mov edx, 0x740024e8
pop ecx
call fcn.7401e5d4
pop ecx
pop ecx
test eax, eax
je 0x74005486
cmp dword [ebp - 0x7c], 0
je 0x74005486
push ecx
push dword [esi]
push esi
mov esi, dword [ebp - 0x80]
mov eax, dword [esi + 0x50]
mov edx, dword [eax + 4]
mov edx, dword [edx + 4]
call fcn.74015eb5
mov edi, eax
test edi, edi
je 0x74005489
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x74005457
cmp dword [ebp + 0x14], 0
jne 0x7400544f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74050130]
call esi
xor eax, eax
mov dword [ebx + 0xfd0], eax
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x7400547f
cmp dword [ebp + 0x14], 0
jne 0x74005477
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x74050130]
call esi
xor eax, eax
mov dword [ebx + 0xfd4], eax
mov eax, edi
jmp 0x74005692
mov esi, dword [ebp - 0x80]
mov edx, esi
mov ecx, ebx
call fcn.740047ab
mov edi, eax
test edi, edi
jne 0x74005432
push dword [ebp - 0x90]
mov ecx, ebx
push dword [ebp - 0x74]
push dword [ebp - 0x8c]
call fcn.74004567
mov edi, eax
test edi, edi
js 0x74005432
mov edx, dword [esi + 0x50]
push ecx
push dword [ebp - 0x74]
mov ecx, ebx
push dword [ebp - 0x8c]
call fcn.7400984e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x74005432
test byte [ebx + 0xf1c], 8
je 0x740054f3
cmp dword [ebx + 0xf58], 2
jl 0x740054f3
mov eax, dword [ebx + 0x1590]
jmp 0x740054fe
push 0x400
call fcn.7403eac3
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 0x74005523
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 0x7400554e
mov dword [eax + 0xac], 0x400
push 0x10000
push ebx
lea ecx, [ebx + 0xf30]
call fcn.7400378e
test eax, eax
je 0x7400556d
mov edi, 0x8007000e
jmp 0x74005432
push 0x1000
lea ecx, [ebx + 0xf24]
call fcn.74003616
test eax, eax
jne 0x74005563
push 0xd80
push ebx
lea ecx, [ebx + 0xddc]
call fcn.74003661
test eax, eax
jne 0x74005563
push 0xc8
push ebx
lea ecx, [ebx + 0xde8]
call fcn.74003661
test eax, eax
jne 0x74005563
mov eax, dword [0x7404bb90]
shl eax, 3
push eax
lea eax, [ebx + 0x15c8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005563
imul eax, dword [0x7404bb8c], 6
lea esi, [ebx + 0x15a4]
shr eax, 5
push eax
push esi
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005563
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 [0x7404bb88]
shl eax, 3
push eax
lea eax, [ebx + 0x15a8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005563
mov esi, dword [ebp - 0x8c]
mov ecx, ebx
mov edx, dword [esi + 4]
call fcn.74004d38
mov edi, eax
cmp edi, 0x8007000e
je 0x74005432
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x7400565b
mov edx, dword [ecx + 4]
mov ecx, ebx
call fcn.74004d38
mov edi, eax
cmp edi, 0x8007000e
jne 0x74005658
mov edx, dword [esi + 4]
mov ecx, ebx
call fcn.74004db1
jmp 0x74005432
mov ecx, dword [ebp - 0x74]
xor eax, eax
test ecx, ecx
mov ecx, ebx
setne al
push eax
call fcn.7400399f
mov edi, eax
test edi, edi
js 0x74005432
mov ecx, dword [ebp - 0xa4]
lea eax, [ebx + 0xf98]
mov dword [ecx], eax
xor eax, eax
jmp 0x74005692
mov eax, 0x88760082
jmp 0x74005692
mov eax, 0x88760064
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7403f010
leave
ret 0x18