Function at 0x41bfb0
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 0x41c000
mov edx, dword [0x451824]
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 0x41c020
mov ecx, dword [str.RInstaller]
mov edx, dword [0x453f48]
mov dword [eax], ecx
mov ecx, dword [0x453f4c]
mov dword [eax + 4], edx
mov edx, dword [0x453f50]
mov dword [eax + 8], ecx
mov ecx, dword [0x453f54]
mov dword [eax + 0xc], edx
mov dx, word [0x453f58]
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.0042ddb4
mov eax, dword [0x45f360]
add esp, 0xc
mov byte [0x45d534], 0
test eax, eax
jne 0x41c0bb
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.004308f0
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 0x41c12d
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [esp + 0xc8], edi
je 0x41c12d
lea eax, [esp + 0xc0]
push eax
push esi
call ebx
test eax, eax
jne 0x41c115
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
lea ecx, [esp + 0x38]
push ecx
call fcn.00411900
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 0x41c171
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
cmp byte [esp + 0x11], 0
je 0x41c191
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 0x41c459
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 0x41c1b5
add dword [0x45d530], 0x100
lea ecx, [esp + 0xe4]
mov eax, str.sca_install.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c1e7
cmp dx, bx
je 0x41c1e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c1e7
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x41c1c1
xor eax, eax
jmp 0x41c1ec
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41c20e
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.0040e8d0
lea ecx, [esp + 0x78]
push ecx
call fcn.0040e9b0
jmp 0x41c459
lea edx, [esp + 0x2f0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41c459
push str.RICHED20.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [esp + 0x2c], edi
cmp edi, ebx
jne 0x41c26e
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], ebx
je 0x41c459
push 0x6cb
push str.wWinMain
push str.Installer.cpp
mov ecx, str.Failed_to_load_RichEdit_library
call fcn.00403d90
add esp, 0xc
jmp 0x41c459
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x41c2a9
mov edx, dword [0x45f3ec]
cmp dword [edx - 0xc], ebx
je 0x41c459
push 0x6d1
push str.wWinMain
push str.Installer.cpp
mov ecx, str.Failed_to_initialize_COM_library
call fcn.00403d90
add esp, 0xc
jmp 0x41c459
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.004037b0
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], ebx
jne 0x41c2e9
lea esi, [esp + 0x38]
call fcn.0041b640
jmp 0x41c443
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
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edi, [esp + 0x28]
call fcn.0041c510
lea edi, [esp + 0x14]
call fcn.00403850
cmp dword [eax], 0
je 0x41c33c
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x41c33c
mov bl, 1
jmp 0x41c33e
xor bl, bl
test byte [esp + 0x18], 1
je 0x41c36a
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 0x41c36a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41c401
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x454188
call fcn.0041c6c0
add esp, 4
test al, al
je 0x41c392
mov byte [esp + 0x13], 1
jmp 0x41c308
lea edx, [esp + 0x14]
push edx
mov ecx, str._upd
call fcn.0041c6c0
add esp, 4
test al, al
je 0x41c3b2
mov byte [esp + 0x11], 1
jmp 0x41c308
lea eax, [esp + 0x14]
push eax
mov ecx, str._rem
call fcn.0041c6c0
add esp, 4
test al, al
je 0x41c3d2
mov byte [esp + 0x12], 1
jmp 0x41c308
mov ecx, dword [esp + 0x14]
push 0x45f348
push 0x4541a8
push ecx
call fcn.0042f2e6
add esp, 0xc
cmp eax, 1
je 0x41c308
mov dword [0x45f348], 0
jmp 0x41c308
cmp byte [esp + 0x13], 0
je 0x41c414
lea edx, [esp + 0x38]
push edx
call fcn.0041b900
jmp 0x41c436
cmp byte [esp + 0x12], 0
je 0x41c426
lea esi, [esp + 0x38]
call fcn.0041be90
jmp 0x41c436
cmp byte [esp + 0x11], 0
je 0x41c436
lea esi, [esp + 0x38]
call fcn.0041bf20
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.0041c480
mov ecx, dword [esp + 0x68c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0042d4af
mov esp, ebp
pop ebp
ret 0x10