Function at 0x100106b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053c45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
push ebx
push esi
push edi
test eax, eax
je 0x10010daa
cmp dword [ebp + 0xc], 0
je 0x10010daa
push 0x20000
mov byte [eax], 0
call fcn.1003249e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
push 0x10000
push ebx
push 0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0xfffe
ja 0x10010810
xor ecx, ecx
mov dword [ebp - 0x30], 0x2000000
test ebx, ebx
mov dword [ebp - 0x34], ecx
mov eax, 0x1005646a
mov dword [ebp - 0x38], ebx
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.10010ff0
mov ebx, eax
xor esi, esi
nop
mov eax, dword [esi + 0x100736c8]
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
push 0x1005afac
push eax
call fcn.100143b0
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x10010775
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x1005646a
cmovne eax, ecx
push eax
push ebx
call fcn.1002e1c0
add esp, 8
mov edi, eax
test byte [ebp - 0x4d], 0x80
mov byte [ebp - 4], 3
je 0x100107a8
call fcn.10023bc0
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 2
test edi, edi
je 0x100107ce
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x100107ce
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.10011cf0
add esp, 4
test al, al
jne 0x10010aa4
add esi, 4
cmp esi, 0x1c
jb 0x10010750
cmp byte [ebp - 0x30], 0
je 0x100107eb
push dword [ebp - 0x3c]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x100107fc
push dword [ebp - 0x38]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x1001080d
push dword [ebp - 0x34]
call fcn.100324a7
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
mov dword [ebp - 4], 0xffffffff
call fcn.100324a7
push 2
push 0
call fcn.10032490
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareValveSteamActiveProcess
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100109fc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x1005a948
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100109fc
cmp dword [ebp - 0x14], 4
jne 0x100109fc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100109fc
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100109fc
push 0x20000
call fcn.1003249e
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 5
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0x10000
push edi
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0x103
jne 0x100109ed
lea eax, [ebx - 1]
cmp eax, 0xfffe
ja 0x100109ed
xor ecx, ecx
mov dword [ebp - 0x30], 0x2000000
test edi, edi
mov dword [ebp - 0x34], ecx
mov eax, 0x1005646a
mov dword [ebp - 0x38], edi
cmovne eax, ecx
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.10010ff0
mov ebx, eax
xor esi, esi
mov eax, dword [esi + 0x100736c8]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
push 0x1005afac
push eax
call fcn.100143b0
mov ecx, eax
add esp, 0xc
cmp byte [ecx + 0xf], 0
jge 0x10010955
mov ecx, dword [ecx]
test ecx, ecx
mov eax, 0x1005646a
cmovne eax, ecx
push eax
push ebx
call fcn.1002e1c0
add esp, 8
mov edi, eax
test byte [ebp - 0x4d], 0x80
mov byte [ebp - 4], 7
je 0x10010988
call fcn.10023bc0
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 4], 6
test edi, edi
je 0x100109ae
mov eax, edi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jge 0x100109ae
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.10011cf0
add esp, 4
test al, al
jne 0x10010b07
add esi, 4
cmp esi, 0x1c
jb 0x10010930
cmp byte [ebp - 0x30], 0
je 0x100109cb
push dword [ebp - 0x3c]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x100109dc
push dword [ebp - 0x38]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x100109ed
push dword [ebp - 0x34]
call fcn.100324a7
add esp, 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.10010610
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SoftwareValveSteam
push reloc.WS2_32.dll_bind
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x10010c26
push dword [ebp + 0xc]
push ebx
push str.InstallPath
push dword [ebp - 0x10]
call fcn.10010e80
add esp, 0x10
mov esi, eax
push dword [ebp - 0x10]
call edi
test esi, esi
jne 0x10010c20
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x2f], si
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x20], esi
jmp 0x10010a60
mov eax, dword [esi + 0x100736c8]
push eax
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x4c]
push str._s_s
push eax
call fcn.100143b0
add esp, 0x10
test byte [ebp - 0x3d], 0x80
mov dword [ebp - 4], 8
je 0x10010b6a
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x10010b6d
xor bl, bl
mov edi, 0x1005646a
jmp 0x10010b79
mov esi, dword [ebp + 8]
sub edi, ebx
push edi
push ebx
push esi
call fcn.10034410
add esp, 0xc
mov byte [edi + esi], 0
cmp byte [ebp - 0x30], 0
je 0x10010ac9
push dword [ebp - 0x3c]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x10010ada
push dword [ebp - 0x38]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x10010aeb
push dword [ebp - 0x34]
call fcn.100324a7
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.10010610
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
sub edi, ebx
push edi
push ebx
push esi
call fcn.10034410
add esp, 0xc
mov byte [edi + esi], 0
cmp byte [ebp - 0x30], 0
je 0x10010b2c
push dword [ebp - 0x3c]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2f], 0
je 0x10010b3d
push dword [ebp - 0x38]
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x2e], 0
je 0x10010b4e
push dword [ebp - 0x34]
call fcn.100324a7
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.10010610
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x4c]
xor bl, bl
mov edi, 0x1005646a
test eax, eax
cmovne edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 9
test edi, edi
jne 0x10010bb4
push 4
push edi
push edi
mov bl, 1
push edi
mov byte [ebp - 0x30], bl
call fcn.1002fb60
mov esi, eax
push esi
call fcn.1003249e
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.1002fb60
mov esi, dword [ebp - 0x20]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.10011cf0
add esp, 4
test al, al
jne 0x10010cbf
test bl, bl
je 0x10010bd6
push edi
call fcn.100324a7
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x30], 0
test byte [ebp - 0x3d], 0x80
mov dword [ebp - 4], 0xb
je 0x10010c01
call fcn.10023bc0
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov ebx, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], esi
cmp esi, 0x1c
jb 0x10010a60
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call fcn.10025ab0
test al, al
je 0x10010daa
lea eax, [ebp - 0x10]
push eax
push 0x201
push 0
push str.SoftwareValveSteam
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x10010daa
push dword [ebp + 0xc]
push ebx
push str.InstallPath
push dword [ebp - 0x10]
call fcn.10010e80
add esp, 0x10
mov esi, eax
push dword [ebp - 0x10]
call edi
test esi, esi
jne 0x10010daa
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x2f], si
mov byte [ebp - 0x2d], 4
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x100736c8]
push eax
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x5c]
push str._s_s
push eax
call fcn.100143b0
add esp, 0x10
test byte [ebp - 0x4d], 0x80
mov dword [ebp - 4], 0xc
je 0x10010cfe
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x10010d01
xor bl, bl
mov edi, 0x1005646a
jmp 0x10010d0d
test bl, bl
je 0x10010ccc
push edi
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xa
jge 0x10010cea
call fcn.10023bc0
push 0
push dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x5c]
xor bl, bl
mov edi, 0x1005646a
test eax, eax
cmovne edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 0xd
test edi, edi
jne 0x10010d48
push 4
push edi
push edi
mov bl, 1
push edi
mov byte [ebp - 0x30], bl
call fcn.1002fb60
mov esi, eax
push esi
call fcn.1003249e
push 0
mov edi, eax
push esi
push edi
push 0
mov dword [ebp - 0x3c], edi
call fcn.1002fb60
mov esi, dword [ebp - 0x20]
add esp, 0x24
push ecx
mov eax, esp
mov dword [eax], edi
call fcn.10011cf0
add esp, 4
test al, al
jne 0x10010dbd
test bl, bl
je 0x10010d66
push edi
call fcn.100324a7
add esp, 4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x30], 0
test byte [ebp - 0x4d], 0x80
mov dword [ebp - 4], 0xf
je 0x10010d91
call fcn.10023bc0
push 0
push dword [ebp - 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov ebx, dword [ebp + 8]
add esi, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], esi
cmp esi, 0x1c
jb 0x10010c86
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x10010dca
push edi
call fcn.100324a7
add esp, 4
cmp byte [ebp - 0x4d], 0
mov dword [ebp - 4], 0xe
jge 0x10010cea
call fcn.10023bc0
push 0
push dword [ebp - 0x5c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret