Function at 0x424710
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Enumerate gui resources
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54baf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 0x14], esi
call fcn.005423f1
lea ecx, [esi + 0xc0]
mov dword [ebp - 4], ebx
call fcn.0040ae80
lea ecx, [esi + 0x128]
mov byte [ebp - 4], 1
call fcn.0041bc90
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + method.CCommandLineInfo.virtual_0], 0x55e4e4
lea edi, [esi + 0x1b4]
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00459300
push str.DownloaderClass
mov dword [esi], method.CWinApp.virtual_0
push ebx
mov dword [0x5ba79c], ebx
mov dword [0x5ba798], ebx
push ebx
mov byte [ebp - 4], 5
mov dword [esi + 0x198], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x16c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x16c], ebx
jne 0x4247f9
push eax
lea eax, [ebp - 0x94]
push str.CreateMutex___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp - 0x94]
push 1
push ecx
mov ecx, edi
call fcn.004593e0
push ebx
call fcn.0051e3cb
cmp eax, 0xb7
jne 0x4249f0
push 0x59b050
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [0x5ba8c8], eax
jne 0x424835
push 0x5ba8c8
push 0x424680
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x5ba8c8], ebx
je 0x424a48
lea ecx, [ebp - 0x58]
call fcn.00426f30
lea edx, [ebp - 0x58]
mov ecx, esi
push edx
mov byte [ebp - 4], 6
call fcn.0054253b
cmp byte [ebp - 0x24], bl
je 0x42491b
mov eax, dword [ebp - 0x30]
cmp dword [eax - 8], 6
jle 0x42491b
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareDownloadManager_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x424915
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push str.LastUrlCmdLine
push edx
call esi
test eax, eax
jne 0x424915
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x4248c5
inc eax
push eax
mov eax, dword [ebp - 0x14]
push ecx
push 1
push ebx
push str.LastDirCmdLine
push eax
call esi
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x4248e1
inc eax
push eax
push ecx
mov ecx, dword [ebp - 0x14]
push 1
push ebx
push str.LastFileCmdLine
push ecx
call esi
mov dl, byte [ebp - 0x21]
mov cl, byte [ebp - 0x20]
xor eax, eax
cmp dl, bl
setne al
cmp cl, bl
je 0x4248f5
add eax, 2
cmp byte [ebp - 0x1f], bl
je 0x4248fd
add eax, 4
mov edx, dword [0x5ba8c8]
push eax
push 0x13be
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.0051e3cb
mov al, byte [ebp - 0x23]
push ebx
cmp al, bl
je 0x42493f
mov eax, dword [0x5ba8c8]
push 0x1398
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.0051e3cb
mov ecx, dword [0x5ba8c8]
push 0x2714
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x5ba8c8]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5ba8c8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x5ba8c8]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x424a42
push 1
push str.ERROR_ALREADY_EXISTS_during_CM_in_CDownloaderApp_constructor_r_n
mov ecx, edi
call fcn.004593e0
push ebx
mov ecx, esi
call fcn.00426630
push str.DownloaderClass
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x16c], eax
jne 0x4249e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x114]
push str.CreateMutex___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push edx
call fcn.0051d0e8
add esp, 0xc
lea eax, [ebp - 0x114]
mov ecx, edi
push 1
push eax
call fcn.004593e0
push ebx
call fcn.0051e3cb
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00426fb0
push str.IsActive
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x18c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x18c], ebx
jne 0x424aaa
push eax
lea eax, [ebp - 0x114]
push str.CreateEvent___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp - 0x114]
push 1
push ecx
mov ecx, edi
call fcn.004593e0
push ebx
call fcn.0051e3cb
push ebx
call fcn.0051e3cb
push 1
push str.ERROR_ALREADY_EXISTS_during_CM_in_CDownloaderApp_constructor_r_n
mov ecx, edi
call fcn.004593e0
push ebx
mov ecx, esi
call fcn.00426630
push str.DownloaderClass
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x16c], eax
jne 0x4249f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x114]
push str.CreateMutex___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push ecx
call fcn.0051d0e8
add esp, 0xc
lea edx, [ebp - 0x114]
mov ecx, edi
push 1
push edx
call fcn.004593e0
push ebx
call fcn.0051e3cb
cmp eax, 0xb7
jne 0x424ac8
push str.IsActive
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x18c], eax
lea edx, [esi + 0x194]
push edx
push ebx
push esi
push 0x4516e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x190], eax
jne 0x424b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push str.CreateThread___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push eax
call fcn.0051d0e8
add esp, 0xc
lea ecx, [ebp - 0x114]
push 1
push ecx
mov ecx, edi
call fcn.004593e0
call fcn.004227e0
cmp al, bl
jne 0x424b22
push ebx
call fcn.0051e3cb
mov dword [esi + 0x170], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret