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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xaa8
mov eax, dword [0x101f6e00]
xor eax, esp
mov dword [esp + 0xaa4], eax
push esi
push edi
push 0x101a2a83
push 0x64
mov edi, edx
call fcn.1013d2f0
mov esi, eax
add esp, 8
test esi, esi
je 0x100592a8
push 0x64
push 0
push esi
call fcn.1013f8f0
mov byte [esi], 1
lea eax, [esi + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x28], 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 4], 2
mov dword [esi + 0x30], 0
call fcn.1013ad60
add esp, 4
mov dword [0x102caa20], esi
lea eax, [esp + 0x60]
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 + 0x24]
push eax
push 0xffffffffffffffff
push 0x101d8b18
push 0
push 0xfde9
call esi
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100590c5
push str.Error_opening_Steam_key_n
jmp 0x10059166
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x208
push eax
lea eax, [esp + 0xa4]
push eax
push 0
push 0
push str.SteamExe
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10059161
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jb 0x10059161
shr ecx, 1
mov eax, esi
je 0x10059128
lea edx, [esi + 0x5c]
nop
cmp word [esp + eax*2 + 0xa0], 0x2f
jne 0x10059123
mov word [esp + eax*2 + 0xa0], dx
inc eax
cmp eax, ecx
jb 0x10059110
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa4]
push eax
push str.__s__steam:__rungameid__s
lea eax, [esp + 0x2b4]
push 0x800
push eax
call fcn.10057c40
add esp, 0x14
lea edx, [esp + 0x2a8]
lea ecx, [esp + 0x60]
call fcn.10057cb0
jmp 0x10059179
push str.Error_reading_SteamExe_key_n
push 2
call fcn.10153b90
add esp, 4
push eax
call fcn.10057c10
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x10200210
mov dword [0x102caa24], eax
call fcn.1013a8e0
add esp, 4
test eax, eax
jne 0x100592c6
mov eax, dword [0x1020023c]
cmp eax, 0x7fffffff
je 0x100592cd
test edi, edi
je 0x100591be
movups xmm0, xmmword [edi]
movups xmmword [0x102ca908], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x100591c8
xorps xmm0, xmm0
movups xmmword [0x102ca908], xmm0
movq qword [0x102ca918], xmm0
xorps xmm0, xmm0
push 0x10200210
movups xmmword [0x102cab28], xmm0
movq qword [0x102cab38], xmm0
call fcn.1013a900
add esp, 4
cmp dword [0x102ceb44], 0
jne 0x100592b2
mov ecx, str.1256735917293572158
mov dword [0x102b92d8], 0x10200208
mov esi, 1
mov edx, 0x102b92e8
sub esi, ecx
lea eax, [ecx + esi]
cmp eax, 0x40
jae 0x1005922a
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10059217
mov esi, dword [0x102caa20]
mov al, 1
mov byte [edx], 0
mov dword [0x102ceb44], 0x102b92d8
mov dword [0x102b92e0], 0x10059870
mov dword [0x102b92e4], 0x10059880
xchg byte [esi], al
push 4
call fcn.1013ca30
add esp, 4
lea ecx, [esp + 0x18]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10059f10
push 0
push 0
call fcn.10159ca0
mov ecx, eax
add esp, 0x18
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x100592df
cmp dword [esi + 0x60], 0
jne 0x100592da
mov eax, dword [esp + 0x18]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov ecx, dword [esp + 0xaa4]
xor ecx, esp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret
mov dword [0x102caa20], 0
mov ecx, dword [esp + 0xaac]
pop edi
pop esi
xor ecx, esp
call fcn.1013c8c0
mov esp, ebp
pop ebp
ret
push 5
call fcn.1013b590
dec eax
push 6
mov dword [0x1020023c], eax
call fcn.1013b590
call fcn.10159e20
push 6
mov dword [esp + 0x1c], 0
call fcn.1013b590
int3