Function at 0x10002260
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaa0
mov eax, dword [0x10028040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1001e1c0
push 0x64
mov edi, edx
call fcn.10007d36
mov esi, eax
add esp, 8
test esi, esi
je 0x10002548
push 0x64
push 0
push esi
call fcn.1000a280
lea eax, [esi + 4]
mov byte [esi], 1
add esp, 0xc
mov dword [eax + 4], 0
mov dword [eax + 8], 0
xorps xmm0, xmm0
movups xmmword [eax + 0xc], xmm0
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push 2
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.10009659
lea eax, [esi + 0x34]
push eax
call fcn.10008c02
add esp, 0xc
mov dword [0x1005bd3c], esi
lea eax, [ebp - 0x88]
xorps xmm0, xmm0
movq qword [esi + 0x5c], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
push eax
push 0xffffffffffffffff
push str.1208067792012705835
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x48]
push eax
push 0xffffffffffffffff
push 0x10025738
push 0
push 0xfde9
call esi
lea eax, [ebp - 0xa9c]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002355
push str.Error_opening_Steam_key_n
jmp 0x10002404
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa94], 0x208
push eax
lea eax, [ebp - 0x290]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0xa9c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa9c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100023ff
mov ecx, dword [ebp - 0xa94]
cmp ecx, 1
jb 0x100023ff
shr ecx, 1
mov eax, esi
je 0x100023c8
lea edx, [esi + 0x5c]
nop dword [eax + eax]
cmp word [ebp + eax*2 - 0x290], 0x2f
jne 0x100023c3
mov word [ebp + eax*2 - 0x290], dx
inc eax
cmp eax, ecx
jb 0x100023b0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x290]
push eax
push str.__s__steam:__rungameid__s
lea eax, [ebp - 0xa90]
push 0x800
push eax
call fcn.10001150
add esp, 0x14
lea edx, [ebp - 0xa90]
lea ecx, [ebp - 0x88]
call fcn.100011c0
jmp 0x10002417
push str.Error_reading_SteamExe_key_n
push 2
call fcn.1000bdfb
add esp, 4
push eax
call fcn.10001120
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1002ab40
mov dword [0x10060174], eax
call fcn.10009675
add esp, 4
test eax, eax
jne 0x10002562
mov eax, dword [0x1002ab6c]
cmp eax, 0x7fffffff
je 0x10002569
test edi, edi
je 0x1000245c
movups xmm0, xmmword [edi]
movups xmmword [0x1005bf40], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10002466
xorps xmm0, xmm0
movups xmmword [0x1005bf40], xmm0
movq qword [0x1005bf50], xmm0
xorps xmm0, xmm0
push 0x1002ab40
movups xmmword [0x1005c158], xmm0
movq qword [0x1005c168], xmm0
call fcn.10009686
add esp, 4
cmp dword [0x10060278], 0
jne 0x10002552
mov ecx, str.1208067792012705835
mov dword [0x1004bbe8], 0x10028930
mov esi, 1
mov edx, 0x1004bbf8
sub esi, ecx
lea eax, [ecx + esi]
cmp eax, 0x40
jae 0x100024c8
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x100024b5
mov esi, dword [0x1005bd3c]
mov al, 1
mov byte [edx], 0
mov dword [0x10060278], 0x1004bbe8
mov dword [0x1004bbf0], 0x100029c0
mov dword [0x1004bbf4], 0x100029d0
xchg byte [esi], al
push 4
call fcn.10007d06
add esp, 4
lea ecx, [ebp - 0xa94]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10002e20
push 0
push 0
call fcn.1000fba1
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0xa98], ecx
test ecx, ecx
je 0x1000257b
cmp dword [esi + 0x60], 0
jne 0x10002576
mov eax, dword [ebp - 0xa94]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007cf8
mov esp, ebp
pop ebp
ret
mov dword [0x1005bd3c], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10007cf8
mov esp, ebp
pop ebp
ret
push 5
call fcn.100094d0
dec eax
push 6
mov dword [0x1002ab6c], eax
call fcn.100094d0
call fcn.1000fc32
push 6
mov dword [ebp - 0xa94], 0
call fcn.100094d0
int3