Function at 0x100592e0
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.10120e10
mov esi, eax
add esp, 8
test esi, esi
je 0x1005957c
push 0x63
lea ecx, [esi + 1]
push 0
push ecx
call fcn.10123240
add esp, 0xc
mov byte [esi], 1
lea eax, [esi + 4]
push 2
push eax
call fcn.1011e8a0
lea eax, [esi + 0x34]
push eax
call fcn.1011ec20
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 0x100593a7
push str.Error_opening_Steam_key_n
jmp 0x10059447
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 0x10059442
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jb 0x10059442
shr ecx, 1
mov eax, esi
je 0x10059409
lea edx, [esi + 0x5c]
cmp word [esp + eax*2 + 0x98], 0x2f
jne 0x10059404
mov word [esp + eax*2 + 0x98], dx
inc eax
cmp eax, ecx
jb 0x100593f1
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.10057f90
add esp, 0x14
lea edx, [esp + 0x2a0]
lea ecx, [esp + 0x58]
call fcn.10058000
jmp 0x1005945a
push str.Error_reading_SteamExe_key_n
push 2
call fcn.10137470
add esp, 4
push eax
call fcn.10057f60
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1027c3d4
mov dword [0x102aebc4], eax
call fcn.1011e8e0
add esp, 4
test eax, eax
jne 0x1005959d
test edi, edi
je 0x1005948f
movups xmm0, xmmword [edi]
movups xmmword [0x102aeaa8], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10059499
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.1011e920
add esp, 4
cmp dword [0x102b2de8], 0
jne 0x10059586
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 0x100594fb
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x100594e8
mov esi, dword [0x102aebc0]
mov al, 1
mov byte [edx], 0
mov dword [0x102b2de8], 0x1029d490
mov dword [0x1029d498], 0x100598c0
mov dword [0x1029d49c], 0x100598d0
xchg byte [esi], al
push 4
call fcn.10120560
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10059e20
push 0
push 0
call fcn.1013d590
mov ecx, eax
add esp, 0x18
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x100595a8
cmp dword [esi + 0x60], 0
jne 0x100595a3
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.10120250
add esp, 0xaa4
ret
mov dword [0x102aebc0], 0
mov ecx, dword [esp + 0xaa4]
pop edi
pop esi
xor ecx, esp
call fcn.10120250
add esp, 0xaa4
ret
push eax
call fcn.1011ee70
call fcn.1013d940
push 6
mov dword [esp + 0x14], 0
call fcn.1011eed0
int3