Function at 0x409b4d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x46d0e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0x208
xor ebx, ebx
mov dword [ebp - 0x248], edi
push ebx
push eax
call fcn.0042c1a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4551b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00416fc0
push str.http:__s.52toolbox.com_write_pidpidtypetypeactionactionappappappverappvermidmidmid2mid2modvermodver
lea ecx, [ebp - 0x240]
call fcn.0040158b
mov eax, dword [ebp - 0x240]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004019a1
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x24c]
pop ecx
push eax
call fcn.00409620
pop ecx
pop ecx
call fcn.00409a49
push edi
mov ecx, eax
call fcn.00408048
push str.D28A2274_24C0_4921_8DD6_439E116A40DC
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409ff1
cmp eax, 5
je 0x409ff1
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x409c4b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00408578
pop ecx
jmp 0x409ffd
call fcn.00409871
test al, al
jne 0x409d1e
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x409ff8
push 0xf
pop edi
push 0x2c
xor ebx, ebx
mov dword [ebp - 0x228], edi
push str.e:workspace_aichat_aichat_updateupdate.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov byte [ebp - 0x23c], bl
call fcn.0040610e
push 3
push 0x45476c
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], bl
call fcn.0040610e
push 0x30
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x328]
call fcn.00403218
mov esi, eax
push str.update__exit
push esi
call fcn.004023b9
pop ecx
pop ecx
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00403cc7
lea ecx, [ebp - 0x224]
call fcn.00405f18
lea ecx, [ebp - 0x23c]
call fcn.00405f18
jmp 0x409ff8
lea ecx, [ebp - 0x290]
call fcn.0040cdc6
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
push 0xf
pop edi
sub eax, 1
jne 0x409dec
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
push 0x2c
push str.e:workspace_aichat_aichat_updateupdate.cpp
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], 0
call fcn.0040610e
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x45476c
mov dword [ebp - 0x228], edi
mov byte [ebp - 0x23c], 0
call fcn.0040610e
push 0x37
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x328]
call fcn.00403218
mov esi, eax
push 0x455370
push esi
call fcn.00403ac5
pop ecx
pop ecx
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00403cc7
lea ecx, [ebp - 0x23c]
call fcn.00405f18
lea ecx, [ebp - 0x224]
call fcn.00405f18
lea ecx, [ebp - 0x290]
call fcn.0040dcd6
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x409ec2
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x2c
push str.e:workspace_aichat_aichat_updateupdate.cpp
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], al
call fcn.0040610e
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x45476c
mov dword [ebp - 0x228], edi
mov byte [ebp - 0x23c], 0
call fcn.0040610e
push 0x39
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x328]
call fcn.00403218
mov esi, eax
push 0x45538c
push esi
call fcn.00403ac5
pop ecx
pop ecx
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00403cc7
lea ecx, [ebp - 0x23c]
call fcn.00405f18
lea ecx, [ebp - 0x224]
call fcn.00405f18
jmp 0x409ec2
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x290]
call fcn.0040d91e
test eax, eax
je 0x409eb7
lea ecx, [ebp - 0x290]
call fcn.0040d4da
call fcn.00416cc0
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x409f9a
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x2c
push str.e:workspace_aichat_aichat_updateupdate.cpp
mov dword [ebp - 0x210], edi
mov byte [ebp - 0x224], al
call fcn.0040610e
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x45476c
mov dword [ebp - 0x228], edi
mov byte [ebp - 0x23c], 0
call fcn.0040610e
push 0x40
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x328]
call fcn.00403218
mov esi, eax
push 0x455398
push esi
call fcn.00403ac5
pop ecx
pop ecx
call fcn.00416cc0
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00403cc7
lea ecx, [ebp - 0x23c]
call fcn.00405f18
lea ecx, [ebp - 0x224]
call fcn.00405f18
lea ecx, [ebp - 0x290]
call fcn.0040d29a
sub esp, 0x18
mov ecx, esp
push 0x454b90
call fcn.0040308a
push ecx
mov ecx, esp
push dword [ebp - 0x248]
call fcn.0040158b
lea ecx, [ebp - 0x290]
call fcn.0040d922
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409b17
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x290]
call fcn.0040ce07
jmp 0x409ff8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004171d0
mov ecx, dword [ebp - 0x24c]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
call fcn.00402009
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417f15
leave
ret 0x10