Function at 0x1000d540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090b78
mov eax, dword fs:[0]
push eax
sub esp, 0x570
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x57c]
mov ecx, 0x15c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x100ac108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x578], 0
push 0x100935bc
lea ecx, [ebp - 0x38]
call fcn.10009aa0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0x104
xor eax, eax
mov word [ebp - 0x260], ax
push 0x206
push 0
lea eax, [ebp - 0x25e]
push eax
call fcn.10072170
add esp, 0xc
mov dword [ebp - 0x26c], 1
mov esi, esp
lea eax, [ebp - 0x44]
push eax
push 0x20019
push 0
push str.wegameDefaultIcon
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.10071a2b
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x1000d612
jmp 0x1000d747
mov esi, esp
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x26c]
push edx
push 0
push 0x100935bc
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.10071a2b
mov dword [ebp - 0x278], eax
cmp dword [ebp - 0x278], 0
je 0x1000d654
jmp 0x1000d747
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000ae10
push 0x100935bc
lea eax, [ebp - 0x38]
push eax
call fcn.100089b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x1000d73f
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x284], 0x104
xor eax, eax
mov word [ebp - 0x494], ax
push 0x206
push 0
lea eax, [ebp - 0x492]
push eax
call fcn.10072170
add esp, 0xc
mov dword [ebp - 0x4a0], 1
mov esi, esp
lea eax, [ebp - 0x44]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWegame.exe
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.10071a2b
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x1000d6ee
jmp 0x1000d747
mov esi, esp
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x494]
push ecx
lea edx, [ebp - 0x4a0]
push edx
push 0
push str.ExeFile
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.10071a2b
mov dword [ebp - 0x4ac], eax
cmp dword [ebp - 0x4ac], 0
je 0x1000d730
jmp 0x1000d747
lea eax, [ebp - 0x494]
push eax
lea ecx, [ebp - 0x38]
call fcn.1000ae10
xor eax, eax
jne 0x1000d5aa
cmp dword [ebp - 0x44], 0
je 0x1000d760
mov esi, esp
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.10071a2b
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.10009a20
mov ecx, dword [ebp - 0x578]
or ecx, 1
mov dword [ebp - 0x578], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1000a550
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x1000d7cc]
call fcn.100719d5
pop eax
pop edx
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.10071a4e
add esp, 0x57c
cmp ebp, esp
call fcn.10071a2b
mov esp, ebp
pop ebp
ret 4