Function at 0x74005070
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 0x7400510b
or dword [ebx + 0xf04], 0x10
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x74005118
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 0x74005240
inc ecx
cmp ecx, 4
jne 0x7400519c
call fcn.7401135a
test eax, eax
je 0x7400523d
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 0x7400523d
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 0x74005234
cmp dword [ebp - 0x98], 4
jne 0x74005234
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 0x74005277
inc ecx
cmp ecx, 4
jne 0x74005242
call fcn.7401135a
test eax, eax
je 0x74005277
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 4]
test byte [eax + 0x48], 4
je 0x74005277
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 0x740056a2
test dword [ebp - 8], 0x2000
je 0x7400569d
test dword [ebp - 8], 0x20000
jne 0x7400569d
mov eax, 0x800
cmp dword [ebp - 0x64], eax
ja 0x74005696
cmp dword [ebp - 0x68], eax
ja 0x74005696
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 0x74005316
mov ecx, 0x8876023c
cmp eax, ecx
je 0x74005309
mov eax, 0x80070057
jmp 0x740056a2
cmp dword [ebp - 0x1c], 0x10
jae 0x74005316
mov eax, ecx
jmp 0x740056a2
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 0x84]
je 0x7400533c
test ecx, ecx
je 0x7400533c
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 0x74005378
cmp edi, 0x887600ff
jne 0x74005442
cmp dword [ebp + 0x14], 0
mov ecx, dword [ebp - 0x74]
je 0x74005398
test ecx, ecx
je 0x74005398
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 0x740053bf
mov ecx, dword [ebp - 0x78]
lea eax, [ebx + 0x1304]
lea esi, [ebx + 0x1300]
push eax
mov edx, esi
call fcn.74019d25
mov edi, eax
test edi, edi
je 0x74005404
cmp edi, 0x80004002
jne 0x74005442
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.74015762
mov edi, eax
test edi, edi
jne 0x74005442
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push 4
push eax
push 4
mov edx, 0x740024e8
pop ecx
call fcn.7401e644
pop ecx
pop ecx
test eax, eax
je 0x74005496
cmp dword [ebp - 0x7c], 0
je 0x74005496
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.74015ef5
mov edi, eax
test edi, edi
je 0x74005499
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x74005467
cmp dword [ebp + 0x14], 0
jne 0x7400545f
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 0x7400548f
cmp dword [ebp + 0x14], 0
jne 0x74005487
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 0x740056a2
mov esi, dword [ebp - 0x80]
mov edx, esi
mov ecx, ebx
call fcn.740047af
mov edi, eax
test edi, edi
jne 0x74005442
push dword [ebp - 0x90]
mov ecx, ebx
push dword [ebp - 0x74]
push dword [ebp - 0x8c]
call fcn.7400456b
mov edi, eax
test edi, edi
js 0x74005442
mov edx, dword [esi + 0x50]
push ecx
push dword [ebp - 0x74]
mov ecx, ebx
push dword [ebp - 0x8c]
call fcn.7400986e
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x74005442
test byte [ebx + 0xf1c], 8
je 0x74005503
cmp dword [ebx + 0xf58], 2
jl 0x74005503
mov eax, dword [ebx + 0x1590]
jmp 0x7400550e
push 0x400
call fcn.7403ebf3
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 0x74005533
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 0x7400555e
mov dword [eax + 0xac], 0x400
push 0x10000
push ebx
lea ecx, [ebx + 0xf30]
call fcn.7400378e
test eax, eax
je 0x7400557d
mov edi, 0x8007000e
jmp 0x74005442
push 0x1000
lea ecx, [ebx + 0xf24]
call fcn.74003616
test eax, eax
jne 0x74005573
push 0xd80
push ebx
lea ecx, [ebx + 0xddc]
call fcn.74003661
test eax, eax
jne 0x74005573
push 0xc8
push ebx
lea ecx, [ebx + 0xde8]
call fcn.74003661
test eax, eax
jne 0x74005573
mov eax, dword [0x7404bb90]
shl eax, 3
push eax
lea eax, [ebx + 0x15c8]
push eax
call sym.d3dim.dll_D3DMalloc
test eax, eax
jne 0x74005573
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 0x74005573
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 0x74005573
mov esi, dword [ebp - 0x8c]
mov ecx, ebx
mov edx, dword [esi + 4]
call fcn.74004d38
mov edi, eax
cmp edi, 0x8007000e
je 0x74005442
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x7400566b
mov edx, dword [ecx + 4]
mov ecx, ebx
call fcn.74004d38
mov edi, eax
cmp edi, 0x8007000e
jne 0x74005668
mov edx, dword [esi + 4]
mov ecx, ebx
call fcn.74004db1
jmp 0x74005442
mov ecx, dword [ebp - 0x74]
xor eax, eax
test ecx, ecx
mov ecx, ebx
setne al
push eax
call fcn.740039a3
mov edi, eax
test edi, edi
js 0x74005442
mov ecx, dword [ebp - 0xa4]
lea eax, [ebx + 0xf98]
mov dword [ecx], eax
xor eax, eax
jmp 0x740056a2
mov eax, 0x88760082
jmp 0x740056a2
mov eax, 0x88760064
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7403f140
leave
ret 0x18