Function at 0x40b970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c493
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
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 edi, dword [ebp + 8]
mov dword [ebp - 0x228], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 0
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40bc5c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x21c], 0
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x220], 0x200
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x486130
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40ba77
cmp dword [ebp - 0x21c], 1
jne 0x40ba77
cmp dword [ebp - 0x220], eax
jbe 0x40ba77
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ba54
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00416a50
jmp 0x40bc3c
mov esi, dword [0x4c25c0]
test esi, esi
jne 0x40bae2
mov esi, dword [0x4c25c4]
push esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c25c0], 0
mov dword [ebp - 4], 1
jne 0x40bad1
push 0x4c2644
push 0x34
call fcn.0042cd78
add esp, 8
mov dword [ebp - 0x214], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40baca
mov ecx, eax
call fcn.0041a6d0
jmp 0x40bacc
xor eax, eax
mov dword [0x4c25c0], eax
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [0x4c25c0]
push edi
push ecx
mov ebx, esp
mov dword [ebp - 0x218], ebx
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40bc66
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push str.__Pid
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.00406bc0
test al, al
jne 0x40bb40
mov edx, str.__Pid
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40bb24
sub edx, ecx
mov ecx, ebx
sar edx, 1
push edx
push str.__Pid
call fcn.00416a50
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.0041b8f0
test eax, eax
je 0x40bb5b
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40bc3c
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40bc70
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
push 0xd0
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], 4
call fcn.00406bc0
test al, al
jne 0x40bbc0
mov ecx, 0xd0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bba0
sub ecx, edx
sar ecx, 1
push ecx
push 0xd0
lea ecx, [ebp - 0x214]
call fcn.00416a50
mov eax, dword [ebp - 0x214]
mov esi, dword [edi]
sub esi, 0x10
mov dword [ebp - 4], 5
lea ebx, [eax - 0x10]
cmp ebx, esi
je 0x40bc23
cmp dword [esi + 0xc], 0
jl 0x40bc18
mov ecx, dword [ebx]
cmp ecx, dword [esi]
jne 0x40bc18
push ebx
call fcn.00407840
add esp, 4
mov dword [ebp - 0x218], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc11
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x218]
add eax, 0x10
mov dword [edi], eax
jmp 0x40bc23
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.00416a50
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x40bc3c
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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 4
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
push 0x80004005
call fcn.004068b0
int3