Function at 0x41c8e0
Capabilities:
Check mutex on windows
Create directory
Enumerate processes
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x684
mov eax, dword [0x45c070]
xor eax, esp
mov dword [esp + 0x680], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 1
push 0x1a
lea ecx, [esp + 0x488]
push ecx
push 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x480]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41c930
mov edx, dword [0x451924]
lea eax, [esp + 0x480]
mov dword [edi], edx
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x41c950
mov ecx, dword [str.RInstaller]
mov edx, dword [0x454210]
mov dword [eax], ecx
mov ecx, dword [0x454214]
mov dword [eax + 4], edx
mov edx, dword [0x454218]
mov dword [eax + 8], ecx
mov ecx, dword [0x45421c]
mov dword [eax + 0xc], edx
mov dx, word [0x454220]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
push 0
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Exception.log
lea ecx, [esp + 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x480]
push edx
push 0x104
push 0x45f138
call fcn.0042e7d4
mov eax, dword [0x45f360]
add esp, 0xc
mov byte [0x45d534], 0
test eax, eax
jne 0x41c9eb
push 0x4022e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x45f360
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
lea ecx, [esp + 0xc8]
push 0
push ecx
mov esi, eax
call fcn.00431310
add esp, 0xc
mov dword [esp + 0xc0], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [esp + 0xc0]
push edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41ca5d
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [esp + 0xc8], edi
je 0x41ca5d
lea eax, [esp + 0xc0]
push eax
push esi
call ebx
test eax, eax
jne 0x41ca45
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea ecx, [esp + 0x38]
push ecx
call fcn.00411950
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push str.INSTALLER_997EDCE1_28C7_49BE_85D4_F0FD83486179
push 1
push 0
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [esp + 0x11]
test esi, esi
je 0x41caa1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
cmp byte [esp + 0x11], 0
je 0x41cac1
push 0
push str.Staffcop_Agent_Installer
push str.Only_one_instance_of_Agent_Installer_allowed._nPlease_finish_previous_installation_first.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x41cd8e
push str.INSTALLER_997EDCE1_28C7_49BE_85D4_F0FD83486179
push 0
push 0
call ebx
xor ebx, ebx
mov dword [0x45f35c], eax
cmp dword [0x45f3e8], ebx
je 0x41cae5
add dword [0x45d530], 0x100
lea ecx, [esp + 0xe4]
mov eax, str.sca_install.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41cb17
cmp dx, bx
je 0x41cb13
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41cb17
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41caf1
xor eax, eax
jmp 0x41cb1c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41cb3e
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.0040e930
lea ecx, [esp + 0x78]
push ecx
call fcn.0040ea10
jmp 0x41cd8e
lea edx, [esp + 0x2f0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41cd8e
push str.RICHED20.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [esp + 0x2c], edi
cmp edi, ebx
jne 0x41cb9e
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], ebx
je 0x41cd8e
push 0x71a
push str.wWinMain
push str.Installer.cpp
mov ecx, str.Failed_to_load_RichEdit_library
call fcn.00403d80
add esp, 0xc
jmp 0x41cd8e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x41cbd9
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], ebx
je 0x41cd8e
push 0x720
push str.wWinMain
push str.Installer.cpp
mov ecx, str.Failed_to_initialize_COM_library
call fcn.00403d80
add esp, 0xc
jmp 0x41cd8e
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], 0x534
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004037a0
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], ebx
jne 0x41cc19
lea esi, [esp + 0x38]
call fcn.0041bf80
jmp 0x41cd78
lea esi, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.004032a0
mov byte [esp + 0x13], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x11], bl
mov dword [0x45f348], ebx
or dword [esp + 0x18], 1
push 0x45444c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ebx, [esp + 0x2c]
call fcn.0041ce40
lea edi, [esp + 0x14]
call fcn.00403840
cmp dword [eax], 0
je 0x41cc71
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x41cc71
mov bl, 1
jmp 0x41cc73
xor bl, bl
test byte [esp + 0x18], 1
je 0x41cc9f
mov eax, dword [esp + 0x24]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41cd36
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x454450
call fcn.0041d050
add esp, 4
test al, al
je 0x41ccc7
mov byte [esp + 0x13], 1
jmp 0x41cc38
lea edx, [esp + 0x14]
push edx
mov ecx, str._upd
call fcn.0041d050
add esp, 4
test al, al
je 0x41cce7
mov byte [esp + 0x11], 1
jmp 0x41cc38
lea eax, [esp + 0x14]
push eax
mov ecx, str._rem
call fcn.0041d050
add esp, 4
test al, al
je 0x41cd07
mov byte [esp + 0x12], 1
jmp 0x41cc38
mov ecx, dword [esp + 0x14]
push 0x45f348
push 0x454470
push ecx
call fcn.0042fca6
add esp, 0xc
cmp eax, 1
je 0x41cc38
mov dword [0x45f348], 0
jmp 0x41cc38
cmp byte [esp + 0x13], 0
je 0x41cd49
lea edx, [esp + 0x38]
push edx
call fcn.0041c240
jmp 0x41cd6b
cmp byte [esp + 0x12], 0
je 0x41cd5b
lea esi, [esp + 0x38]
call fcn.0041c7d0
jmp 0x41cd6b
cmp byte [esp + 0x11], 0
je 0x41cd6b
lea esi, [esp + 0x38]
call fcn.0041c860
lea ecx, [esp + 0x14]
call fcn.004032c0
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x1c]
call fcn.004032c0
lea eax, [esp + 0x38]
call fcn.0041cdb0
mov ecx, dword [esp + 0x68c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042decf
mov esp, ebp
pop ebp
ret 0x10