Function at 0x40a550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c283
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 0x40a86f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov ebx, dword [0x4c25c0]
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
test ebx, ebx
jne 0x40a62c
mov esi, dword [0x4c25c4]
push esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
cmp dword [0x4c25c0], ebx
jne 0x40a61b
push 0x4c2644
push 0x34
call fcn.0042cd78
add esp, 8
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x40a614
mov ecx, eax
call fcn.0041a6d0
jmp 0x40a616
xor eax, eax
mov dword [0x4c25c0], eax
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [0x4c25c0]
push edi
push ecx
mov esi, esp
mov dword [ebp - 0x214], esi
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40a879
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.__from
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00406bc0
test al, al
jne 0x40a68c
mov ecx, str.__from
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a670
sub ecx, edx
sar ecx, 1
push ecx
push str.__from
mov ecx, esi
call fcn.00416a50
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.0041b8f0
test eax, eax
je 0x40a6a7
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40a84f
push edi
push ecx
mov esi, esp
mov dword [ebp - 0x214], esi
call fcn.0040b4c0
mov ecx, eax
test ecx, ecx
je 0x40a883
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.__fromalias
mov ecx, esi
mov dword [ebp - 4], 4
call fcn.00406bc0
test al, al
jne 0x40a70c
mov edx, str.__fromalias
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a6f0
sub edx, ecx
mov ecx, esi
sar edx, 1
push edx
push str.__fromalias
call fcn.00416a50
mov ecx, ebx
mov byte [ebp - 4], 0
call fcn.0041b8f0
test eax, eax
je 0x40a727
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40a84f
lea eax, [ebp - 0x214]
push eax
call fcn.0040b660
mov ecx, dword [eax]
or ebx, 0xffffffff
mov esi, dword [edi]
sub esi, 0x10
mov dword [ebp - 4], 5
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x40a794
cmp dword [esi + 0xc], 0
jl 0x40a789
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40a789
push edx
call fcn.00407840
add esp, 4
mov dword [ebp - 0x220], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a782
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
add eax, 0x10
mov dword [edi], eax
jmp 0x40a794
push dword [ecx - 0xc]
push ecx
mov ecx, edi
call fcn.00416a50
mov edx, dword [ebp - 0x214]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a7b3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40a84f
push 0x200
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 0
push 0
push eax
call fcn.00432c40
add esp, 0xc
mov dword [ebp - 0x21c], 0x200
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.From
push str.SOFTWARELDSGameMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40a84f
cmp dword [ebp - 0x218], 1
jne 0x40a84f
cmp dword [ebp - 0x21c], eax
jbe 0x40a84f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a831
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00416a50
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