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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6a26
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.005eb8d8
lea ecx, [esi + 0xc0]
mov dword [ebp - 4], ebx
call fcn.0050ba00
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 1
call fcn.004141b0
lea ecx, [esi + 0x144]
mov byte [ebp - 4], 2
call fcn.00432cf0
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + method.CCommandLineInfo.virtual_0], 0x614c84
lea edi, [esi + 0x1b8]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.0049e3c0
push str.Tonec_Internet_Download_Manager_MTX
mov dword [esi], method.CWinApp.virtual_0
push ebx
mov dword [0x6ced18], ebx
mov dword [0x6ced14], ebx
push ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x19c], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x194], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x194], ebx
jne 0x4425d8
push eax
lea eax, [ebp - 0x94]
push str.CreateMutex___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push eax
call fcn.005c5558
add esp, 0xc
lea ecx, [ebp - 0x94]
push 1
push ecx
mov ecx, edi
call fcn.0049e4e0
push ebx
call fcn.005c6c57
cmp eax, 0xb7
jne 0x4427bc
push 0x6a472c
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [0x6cee8c], eax
jne 0x442614
push 0x6cee8c
push 0x442450
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x6cee8c], ebx
je 0x4427d5
lea ecx, [ebp - 0x60]
call fcn.004475d0
lea edx, [ebp - 0x60]
mov ecx, esi
push edx
mov byte [ebp - 4], 7
call fcn.005eba22
cmp byte [ebp - 0x2c], bl
je 0x4426fa
mov eax, dword [ebp - 0x38]
cmp dword [eax - 8], 6
jle 0x4426fa
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareDownloadManager_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4426f4
mov eax, dword [ebp - 0x38]
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 0x4426f4
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x4426a4
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 - 0x30]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x4426c0
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 - 0x29]
mov cl, byte [ebp - 0x28]
xor eax, eax
cmp dl, bl
setne al
cmp cl, bl
je 0x4426d4
add eax, 2
cmp byte [ebp - 0x27], bl
je 0x4426dc
add eax, 4
mov edx, dword [0x6cee8c]
push eax
push 0x13be
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.005c6c57
mov al, byte [ebp - 0x2b]
push ebx
cmp al, bl
je 0x44271e
mov eax, dword [0x6cee8c]
push 0x1398
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.005c6c57
mov ecx, dword [0x6cee8c]
push 0x2714
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x6cee8c]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x6cee8c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4427cf
push 1
push str.ERROR_ALREADY_EXISTS__step_1_in_CDwnlApp_r_n
mov ecx, edi
call fcn.0049e4e0
push ebx
mov ecx, esi
call fcn.00446cb0
push str.Tonec_Internet_Download_Manager_MTX
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x194], eax
jne 0x4427b0
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.005c5558
add esp, 0xc
lea edx, [ebp - 0x114]
mov ecx, edi
push 1
push edx
call fcn.0049e4e0
push ebx
call fcn.005c6c57
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.00447660
call fcn.0043f650
cmp al, bl
jne 0x442851
push ebx
call fcn.005c6c57
push ebx
call fcn.005c6c57
push 1
push str.ERROR_ALREADY_EXISTS_during_CM_in_CDownloaderApp_constructor_r_n
mov ecx, edi
call fcn.0049e4e0
push ebx
mov ecx, esi
call fcn.00446cb0
push str.Tonec_Internet_Download_Manager_MTX
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x194], eax
jne 0x4427bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push str.CreateMutex___failed_during_CDownloaderApp::CDownloaderApp____errCode___ld_n
push eax
call fcn.005c5558
add esp, 0xc
lea ecx, [ebp - 0x114]
push 1
push ecx
mov ecx, edi
call fcn.0049e4e0
push ebx
call fcn.005c6c57
mov edx, dword [ebp - 0x14]
push 1
push str.Unknown_error_during_CDownloaderApp::CDownloaderApp___n
lea ecx, [edx + 0x1b8]
call fcn.0049e4e0
mov eax, 0x44284e
ret
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret