Function at 0x40db60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c788
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4be5b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0
push 0
push 0x203
push 0
push 0
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0
call fcn.004079c0
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00432c40
mov ebx, dword [ebp - 0x434]
lea eax, [ebp - 0x41c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
mov dword [ebp - 0x41c], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push 0x485e7c
push ebx
call esi
test eax, eax
jne 0x40dd54
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x40dc38
cmp eax, 2
jne 0x40dc5b
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x40dd3c
test al, 1
jne 0x40dc5b
shr eax, 1
cmp word [ebp + eax*2 - 0x212], 0
je 0x40dd5f
mov dword [ebp - 0x418], 0
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x41c], 0x200
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push str.SubPID
push ebx
call esi
test eax, eax
jne 0x40dd7f
mov eax, dword [ebp - 0x414]
cmp eax, 1
je 0x40dcbc
cmp eax, 2
jne 0x40dcdf
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x40dd6e
test al, 1
jne 0x40dcdf
shr eax, 1
cmp word [ebp + eax*2 - 0x412], 0
je 0x40dd8a
xor esi, esi
lea eax, [ebp - 0x424]
push eax
call fcn.0040b970
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
call fcn.0040bf90
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 2
push eax
call fcn.0040a890
or edi, 0xffffffff
mov byte [ebp - 4], 3
cmp dword [ebp - 0x418], 0
je 0x40dd94
test esi, esi
jne 0x40de0e
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x420]
call fcn.00404c60
jmp 0x40de0e
xor eax, eax
mov dword [ebp - 0x418], 1
mov word [ebp - 0x210], ax
jmp 0x40dc65
cmp eax, 0xea
jne 0x40dc5b
mov dword [ebp - 0x418], 1
jmp 0x40dc65
xor eax, eax
mov word [ebp - 0x410], ax
lea esi, [eax + 1]
jmp 0x40dce1
cmp eax, 0xea
jne 0x40dcdf
mov esi, 1
jmp 0x40dce1
lea eax, [ebp - 0x414]
push eax
call fcn.0040b660
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.00404c60
mov edx, dword [ebp - 0x414]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ddd1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x414]
push eax
call fcn.0040bcd0
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 5
call fcn.00404c60
mov edx, dword [ebp - 0x414]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x418]
push eax
call fcn.004554b0
mov esi, eax
lea eax, [ebp - 0x414]
mov byte [ebp - 4], 6
push eax
call fcn.004554b0
add esp, 8
push esi
push eax
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0040b360
mov ecx, eax
call fcn.00450a00
mov edx, dword [ebp - 0x414]
mov eax, edi
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x418]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40de98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x428]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40deb9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x420]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40deda
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40def9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40df04
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c75e
mov esp, ebp
pop ebp
ret