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

Disassembly:
sub esp, 0xaa4
mov eax, dword [0x101dadb0]
xor eax, esp
mov dword [esp + 0xa9c], eax
push esi
push edi
push 0x10186aa3
push 0x64
mov edi, edx
call fcn.10121080
mov esi, eax
add esp, 8
test esi, esi
je 0x100596ec
push 0x63
lea ecx, [esi + 1]
push 0
push ecx
call fcn.101234b0
add esp, 0xc
mov byte [esi], 1
lea eax, [esi + 4]
push 2
push eax
call fcn.1011eb30
lea eax, [esi + 0x34]
push eax
call fcn.1011eeb0
add esp, 0xc
mov dword [0x102aebc0], esi
lea eax, [esp + 0x58]
xorps xmm0, xmm0
movq qword [esi + 0x5c], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x20
push eax
push 0xffffffffffffffff
push str.1256735917293572158
push 0
push 0xfde9
call esi
push 0x20
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 0x101bc710
push 0
push 0xfde9
call esi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10059517
push str.Error_opening_Steam_key_n
jmp 0x100595b7
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x208
push eax
lea eax, [esp + 0x9c]
push eax
push 0
push 0
push str.SteamExe
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100595b2
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jb 0x100595b2
shr ecx, 1
mov eax, esi
je 0x10059579
lea edx, [esi + 0x5c]
cmp word [esp + eax*2 + 0x98], 0x2f
jne 0x10059574
mov word [esp + eax*2 + 0x98], dx
inc eax
cmp eax, ecx
jb 0x10059561
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
push str.__s__steam:__rungameid__s
lea eax, [esp + 0x2ac]
push 0x800
push eax
call fcn.10058100
add esp, 0x14
lea edx, [esp + 0x2a0]
lea ecx, [esp + 0x58]
call fcn.10058170
jmp 0x100595ca
push str.Error_reading_SteamExe_key_n
push 2
call fcn.101376d0
add esp, 4
push eax
call fcn.100580d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1027c3d4
mov dword [0x102aebc4], eax
call fcn.1011eb70
add esp, 4
test eax, eax
jne 0x1005970d
test edi, edi
je 0x100595ff
movups xmm0, xmmword [edi]
movups xmmword [0x102aeaa8], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10059609
xorps xmm0, xmm0
movups xmmword [0x102aeaa8], xmm0
movq qword [0x102aeab8], xmm0
xorps xmm0, xmm0
push 0x1027c3d4
movups xmmword [0x102aecc8], xmm0
movq qword [0x102aecd8], xmm0
call fcn.1011ebb0
add esp, 4
cmp dword [0x102b2de8], 0
jne 0x100596f6
mov ecx, str.1256735917293572158
mov dword [0x1029d490], 0x101e4158
mov esi, 1
mov edx, 0x1029d4a0
sub esi, ecx
lea eax, [ecx + esi]
cmp eax, 0x40
jae 0x1005966b
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10059658
mov esi, dword [0x102aebc0]
mov al, 1
mov byte [edx], 0
mov dword [0x102b2de8], 0x1029d490
mov dword [0x1029d498], 0x10059a30
mov dword [0x1029d49c], 0x10059a40
xchg byte [esi], al
push 4
call fcn.101207d0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10059f90
push 0
push 0
call fcn.1013d800
mov ecx, eax
add esp, 0x18
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x10059718
cmp dword [esi + 0x60], 0
jne 0x10059713
mov eax, dword [esp + 0x10]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov ecx, dword [esp + 0xa9c]
xor ecx, esp
call fcn.101204c0
add esp, 0xaa4
ret
mov dword [0x102aebc0], 0
mov ecx, dword [esp + 0xaa4]
pop edi
pop esi
xor ecx, esp
call fcn.101204c0
add esp, 0xaa4
ret
push eax
call fcn.1011f100
call fcn.1013dbb0
push 6
mov dword [esp + 0x14], 0
call fcn.1011f160
int3