Function at 0x10058960
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.10120440
mov esi, eax
add esp, 8
test esi, esi
je 0x10058bfc
push 0x63
lea ecx, [esi + 1]
push 0
push ecx
call fcn.10122870
add esp, 0xc
mov byte [esi], 1
lea eax, [esi + 4]
push 2
push eax
call fcn.1011def0
lea eax, [esi + 0x34]
push eax
call fcn.1011e270
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 0x10058a27
push str.Error_opening_Steam_key_n
jmp 0x10058ac7
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 0x10058ac2
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jb 0x10058ac2
shr ecx, 1
mov eax, esi
je 0x10058a89
lea edx, [esi + 0x5c]
cmp word [esp + eax*2 + 0x98], 0x2f
jne 0x10058a84
mov word [esp + eax*2 + 0x98], dx
inc eax
cmp eax, ecx
jb 0x10058a71
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.10057610
add esp, 0x14
lea edx, [esp + 0x2a0]
lea ecx, [esp + 0x58]
call fcn.10057680
jmp 0x10058ada
push str.Error_reading_SteamExe_key_n
push 2
call fcn.10136a80
add esp, 4
push eax
call fcn.100575e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x1027c3d4
mov dword [0x102aebc4], eax
call fcn.1011df30
add esp, 4
test eax, eax
jne 0x10058c1d
test edi, edi
je 0x10058b0f
movups xmm0, xmmword [edi]
movups xmmword [0x102aeaa8], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x10058b19
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.1011df70
add esp, 4
cmp dword [0x102b2de8], 0
jne 0x10058c06
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 0x10058b7b
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10058b68
mov esi, dword [0x102aebc0]
mov al, 1
mov byte [edx], 0
mov dword [0x102b2de8], 0x1029d490
mov dword [0x1029d498], 0x10058f40
mov dword [0x1029d49c], 0x10058f50
xchg byte [esi], al
push 4
call fcn.1011fb90
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x100594a0
push 0
push 0
call fcn.1013cbb0
mov ecx, eax
add esp, 0x18
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x10058c28
cmp dword [esi + 0x60], 0
jne 0x10058c23
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.1011f880
add esp, 0xaa4
ret
mov dword [0x102aebc0], 0
mov ecx, dword [esp + 0xaa4]
pop edi
pop esi
xor ecx, esp
call fcn.1011f880
add esp, 0xaa4
ret
push eax
call fcn.1011e4c0
call fcn.1013cf60
push 6
mov dword [esp + 0x14], 0
call fcn.1011e520
int3