Function at 0x1004dd1
Capabilities:
Check mutex on windows
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
inc edi
xor ebx, ebx
push 0x1001b4c
mov dword [0x1014e00], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x10014a0
push edi
push ebx
mov dword [0x1014de8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [0x1014dec], eax
mov edi, 0x2710
je 0x1004e36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004e36
push edi
push dword [0x1014dec]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1014e70
push 0x1014e6c
push 0x1014e68
call fcn.010039a1
cmp dword [0x1014e68], ebx
je 0x1004e64
push 0x1014e74
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push 0x104
lea eax, [ebp - 0x408]
push eax
push 0x2713
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
call esi
test eax, eax
je 0x1004ed7
lea eax, [ebp - 0x408]
push eax
push 0x8002
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x1004ed7
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 0x14]
push eax
push edi
push 2
push ebx
push ebx
mov edi, 0x40b
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x1004ed7
cmp dword [ebp - 0x14], edi
je 0x100518b
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push 0x1001ad8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004f67
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x1001ab8
push dword [ebp - 0xc]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], ebx
je 0x1004f67
push 0x19
lea eax, [ebp - 0x70]
push eax
push 0x2729
push dword [ebp + 8]
call esi
push 0xc8
lea eax, [ebp - 0x200]
push eax
push 0x272a
push dword [ebp + 8]
call esi
push 0x10
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x200]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 4], ebx
jmp 0x100518b
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.010026f6
push 0x1014e18
push ebx
push ebx
push 0x100e3cb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x4c
push 0x40
mov dword [0x1014e1c], eax
mov dword [0x1014e4c], 5
call esi
cmp eax, ebx
je 0x1004fae
mov ecx, eax
call fcn.01003593
jmp 0x1004fb0
xor eax, eax
cmp eax, ebx
mov dword [0x1014e50], eax
je 0x1004f5f
push 0x50
push 0x40
call esi
cmp eax, ebx
je 0x1004fcc
mov ecx, eax
call fcn.01003547
jmp 0x1004fce
xor eax, eax
cmp eax, ebx
mov dword [0x1014e54], eax
je 0x1004f5f
call fcn.01003a8a
test al, al
jne 0x100506f
push 0x54
push 0x40
call esi
mov edx, eax
cmp edx, ebx
je 0x1005002
push 9
pop ecx
xor eax, eax
lea edi, [edx + 0x20]
mov dword [edx], 0x1001a54
rep stosd dword es:[edi], eax
jmp 0x1005004
xor edx, edx
cmp edx, ebx
mov dword [0x1014e58], edx
je 0x1004f5f
push 0x74
push 0x40
call esi
cmp eax, ebx
je 0x1005025
mov ecx, eax
call fcn.010089cb
jmp 0x1005027
xor eax, eax
cmp eax, ebx
mov dword [0x1014e5c], eax
je 0x1004f5f
cmp dword [0x1014e68], ebx
je 0x1005067
cmp dword [0x1014e6c], ebx
jne 0x1005067
push 0x48
push 0x40
call esi
cmp eax, ebx
je 0x1005057
mov ecx, eax
call fcn.010035f0
jmp 0x1005059
xor eax, eax
cmp eax, ebx
mov dword [0x1014e60], eax
jne 0x1005079
jmp 0x1004f5f
dec dword [0x1014e4c]
jmp 0x1005079
mov dword [0x1014e4c], 2
call fcn.0100391e
test eax, eax
je 0x1004f5f
call fcn.01005f19
test al, al
je 0x1004f5f
call fcn.0100736e
test al, al
je 0x1004f5f
push ebx
push 0x10048a4
push ebx
push 0x69
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
cmp eax, ebx
mov dword [0x1014df4], eax
je 0x1004f5f
call fcn.010038c2
mov eax, dword [0x1014e98]
mov ecx, dword [0x1014ea0]
mov edx, dword [0x1014e9c]
push 4
sub ecx, eax
push ecx
mov ecx, dword [0x1014e94]
sub edx, ecx
push edx
push eax
push ecx
push ebx
push dword [0x1014df4]
xor esi, esi
inc esi
mov dword [0x1014e44], esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x14]
push dword [0x1014df4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x1014dec]
cmp eax, ebx
je 0x100512c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x1014dec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1014dec], ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x100517e
lea eax, [ebp - 0x3c]
push eax
push dword [0x1014e04]
push dword [0x1014df4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x100517e
lea eax, [ebp - 0x3c]
push eax
push dword [0x1014df4]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x100517e
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call esi
test eax, eax
jne 0x100513c
mov eax, dword [0x1014dec]
cmp eax, ebx
je 0x10051ad
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x1014dec]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1014dec], ebx
mov ecx, dword [0x1014e50]
cmp ecx, ebx
je 0x10051be
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
mov ecx, dword [0x1014e54]
cmp ecx, ebx
je 0x10051cf
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
mov ecx, dword [0x1014e58]
cmp ecx, ebx
je 0x10051e0
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
mov ecx, dword [0x1014e5c]
cmp ecx, ebx
je 0x10051f1
push 1
call fcn.01003af1
cmp dword [0x1014e68], ebx
je 0x100520a
mov ecx, dword [0x1014e60]
cmp ecx, ebx
je 0x100520a
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
call fcn.01006076
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10