Function at 0x1052c3f
Capabilities:
Check mutex on windows
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x10d5554
call fcn.0107a498
sub esp, 0x90
mov eax, dword [0x10e607c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x84], edi
call fcn.01022d6e
mov ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
sub eax, esi
mov dword [ebp - 0x64], ebx
je 0x1052ca7
dec eax
jne 0x1052fb7
call fcn.01022d84
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
push 0x100a9cc
push edi
call esi
push 0x1005bdc
push edi
call esi
add esp, 0x18
jmp 0x1052fb7
cmp dword [ebx + 0xbec], esi
je 0x1052cd7
push 0x104
push edi
push 0x100a98c
mov word [edi], si
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.01052af2
mov word [ebx + 0xac4], 4
jmp 0x1052fb7
call fcn.01052ae7
push eax
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
cmp word [edi], si
pop ecx
pop ecx
jne 0x1052fb7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a538
mov edi, 0x80000001
push edi
call ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a940
push edi
call ebx
cmp eax, esi
jne 0x1052fb7
push 0x100a910
push esi
push esi
mov dword [ebp - 0x94], 0x28
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, esi
mov dword [ebp - 0x8c], eax
je 0x1052d70
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x98]
push eax
push esi
push 0x100a8f0
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
je 0x1052db7
push 4
lea eax, [ebp - 0x7c]
push eax
push 4
push esi
push 0x100a8f0
push dword [ebp - 0x68]
mov dword [ebp - 0x7c], 0xa
call edi
jmp 0x1052dbd
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x70], esi
jle 0x1052e7f
lea ecx, [ebp - 0x74]
call sub.MFC42u.dll_CString::CString_2
mov eax, dword [ebp - 0x70]
inc eax
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0x100a8e0
push eax
mov dword [ebp - 4], esi
call sub.MFC42u.dll_CString::Format
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push dword [ebp - 0x74]
push dword [ebp - 0x68]
call ebx
test eax, eax
jne 0x1052e56
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x9c]
push eax
push esi
push 0x100a8c0
push dword [ebp - 0x6c]
mov dword [ebp - 0x90], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1052e73
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x38]
jg 0x1052e73
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x80], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x7c]
mov dword [ebp - 0x70], eax
jl 0x1052dcc
jmp 0x1052e7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call sub.MFC42u.dll_CString::CString
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x70], eax
jne 0x1052ea8
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a8b4
push dword [ebp - 0x68]
call ebx
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.msvcrt.dll_time]
mov ebx, dword [ebp - 0x64]
cmp word [ebx + 0x8bc], 2
pop ecx
jne 0x1052f87
push 4
lea eax, [ebp - 0x80]
push eax
push 4
push esi
push 0x100a8c0
push dword [ebp - 0x6c]
call edi
add ebx, 0x8b8
push ebx
lea ecx, [ebp - 0x64]
call sub.MFC42u.dll_CString::CString_5
mov eax, dword [ebp - 0x64]
xor ebx, ebx
inc ebx
cmp dword [eax - 8], esi
mov dword [ebp - 4], ebx
jne 0x1052f01
push 0x2779
lea ecx, [ebp - 0x64]
call sub.MFC42u.dll_CString::LoadStringW
mov eax, dword [ebp - 0x64]
mov eax, dword [eax - 8]
add eax, eax
push eax
push esi
lea ecx, [ebp - 0x64]
call sub.MFC42u.dll_CString::GetBuffer
push eax
push ebx
push esi
push 0x100a8a0
push dword [ebp - 0x6c]
call edi
call fcn.01022d84
push eax
push dword [ebp - 0x84]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea ecx, [ebp - 0x78]
call sub.MFC42u.dll_CString::CString_2
mov eax, dword [ebp - 0x70]
inc eax
push eax
lea eax, [ebp - 0x78]
push 0x100a880
push eax
mov byte [ebp - 4], 2
call sub.MFC42u.dll_CString::Format
push dword [ebp - 0x78]
push dword [ebp - 0x84]
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
push dword [ebp - 0x84]
call fcn.01052af2
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call sub.MFC42u.dll_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call sub.MFC42u.dll_CString::CString
push dword [ebp - 0x6c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp - 0x68]
call edi
cmp dword [ebp - 0x8c], esi
je 0x1052fb7
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01078836
leave
ret 4