Function at 0x1001bf70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1008d1c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [0x100ba4f0]
xor eax, ebp
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x454], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
push str.SOFTWAREGameTea
lea ecx, [esp + 0x24]
push str._sGameRoom_
push ecx
mov dword [esp + 0x478], ebx
call fcn.1001bf10
add esp, 0xc
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x24]
mov byte [esp + 0x46c], 1
jae 0x1001c001
lea eax, [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001c06f
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10007df0
cmp dword [esp + 0x38], edi
jb 0x1001c04b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100788bb
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x1001c191
mov edx, dword [esp + 0x40]
push edx
jmp 0x1001c189
xor eax, eax
mov byte [esp + 0x58], bl
mov ecx, 0xff
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001c10e
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x44]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10007df0
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp eax, edi
jb 0x1001c0ed
mov eax, dword [esp + 0x24]
push eax
call fcn.100788bb
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x1001c191
mov ecx, dword [esp + 0x40]
push ecx
jmp 0x1001c189
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001c120
sub eax, edx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.10007f20
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10007df0
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp eax, edi
jb 0x1001c16e
mov edx, dword [esp + 0x24]
push edx
call fcn.100788bb
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x1001c191
mov eax, dword [esp + 0x40]
push eax
call fcn.100788bb
add esp, 4
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x45c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10043e9e
mov esp, ebp
pop ebp
ret