Function at 0x409f40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463600
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x500
mov eax, dword [0x48700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00434ea0
push 3
call dword [sym.imp.libcurl.dll_curl_global_init]
mov eax, dword fs:[0x2c]
add esp, 4
mov ecx, dword [eax]
mov eax, dword [0x48b378]
cmp eax, dword [ecx + 4]
jle 0x409fe0
push 0x48b378
call fcn.00461445
add esp, 4
cmp dword [0x48b378], 0xffffffff
jne 0x409fe0
push 0x46a900
mov dword [0x48b37c], 0x472b9c
call fcn.004617a1
add esp, 4
push 0x48b378
call fcn.004613fb
add esp, 4
push 0x472b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x48b380], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40a008
xor eax, eax
jmp 0x40a4fe
call fcn.00434ea0
cmp dword [0x4873e8], 0
jne 0x40a09c
lea ecx, [ebp - 0x2c]
call fcn.0042bbc0
mov esi, eax
cmp esi, 0x4873d8
je 0x40a060
mov ecx, 0x4873d8
call fcn.00409ab0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [0x4873d8], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x4873e8], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40a09c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a092
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a092
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
push 6
push str.Br0Cap
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00403560
lea ecx, [ebp - 0x2c]
call fcn.00434400
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40a0fb
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a0f1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00461242
add esp, 8
sub esp, 8
lea ecx, [ebp - 0x510]
call fcn.00402c10
mov eax, dword [ebp - 0x510]
lea ecx, [ebp - 0x510]
push 0
push 0
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
lea eax, [ebp - 0x500]
mov word [ebp - 0x460], 0x100
push 0x472b84
push eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x45c], 0
call fcn.00403720
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 8
call esi
push eax
lea ecx, [ebp - 0x500]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [ebp - 0x500]
push 0x472b90
push eax
call fcn.00403720
add esp, 8
lea ecx, [ebp - 0x510]
call fcn.0042c650
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0042b270
cmp dword [0x4873a4], 8
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov ecx, 0x487390
cmovae ecx, dword [0x487390]
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
cmp esi, dword [0x4873a0]
jne 0x40a276
test esi, esi
je 0x40a1e7
nop word [eax + eax]
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x40a276
add edx, 2
add ecx, 2
sub esi, 1
jne 0x40a1d0
call fcn.0042bd00
test al, al
jne 0x40a22e
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40a47b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a471
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a471
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp dword [0x4873ec], 8
mov ecx, 0x4873d8
push 0x42c500
cmovae ecx, dword [0x4873d8]
mov eax, 0x4873a8
cmp dword [0x4873bc], 8
push 0x42c2d0
cmovae eax, dword [0x4873a8]
push 0x42c1b0
push ecx
push eax
call dword [0x48b204]
add esp, 0x14
test al, al
je 0x40a1f0
call fcn.0042bd00
test al, al
je 0x40a1f0
cmp dword [0x4873ec], 8
mov eax, 0x4873d8
push 0x42c010
cmovae eax, dword [0x4873d8]
push eax
push 0
call dword [0x48b208]
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov byte [0x48b33a], al
cmp edx, 8
jb 0x40a2e6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a2dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a228
push edx
push ecx
call fcn.00461242
add esp, 8
push 0xe4
call fcn.00461273
mov edi, eax
add esp, 4
xor eax, eax
mov dword [edi], vtable.net_client::capdump::log::LogReporter.0
mov word [edi + 5], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0xf
mov byte [edi + 0x24], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0xf
mov byte [edi + 0x3c], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xf
mov byte [edi + 0x54], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0xf
mov byte [edi + 0x6c], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0xf
mov byte [edi + 0x84], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 7
mov word [edi + 0x9c], ax
lea eax, [edi + 0xb4]
push 2
push eax
call dword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
push 0x404
lea eax, [ebp - 0x434]
mov dword [ebp - 0x43c], 0
push 0
push eax
mov dword [ebp - 0x438], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
mov byte [ebp - 0x440], 1
mov eax, dword [edi]
lea ecx, [ebp - 0x440]
push ecx
mov eax, dword [eax]
mov ecx, edi
call eax
test al, al
je 0x40a402
mov eax, dword [0x48b1c4]
test eax, eax
je 0x40a402
push edi
call eax
add esp, 4
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0xc
call fcn.00461273
mov esi, eax
add esp, 4
mov dword [esi], vtable.chrome::BrowserMainRunnerImpl.0
mov word [esi + 4], 0
mov byte [esi + 6], 0
mov dword [esi + 8], 0
call dword [sym.imp.brbase.dll_public:_static_class_CommandLine____cdecl_CommandLine::ForCurrentProcess_void_]
mov dword [ebp - 0x44c], eax
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x448], 0
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 0x444], eax
test eax, eax
js 0x40a48b
mov dword [ebp - 4], 0
mov ecx, esi
mov edx, dword [esi]
push 1
call dword [edx]
jmp 0x40a4b0
push edx
push ecx
call fcn.00461242
add esp, 8
push 0x409f30
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
jmp 0x40a2e6
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x444], eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
mov dword [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
push 1
call dword [eax]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x48b1c4]
test eax, eax
je 0x40a4c7
push 0
call eax
add esp, 4
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 8]
mov dword [ebp - 4], 2
mov eax, dword [0x48b33c]
test eax, eax
je 0x40a4f8
mov ecx, dword [0x48b200]
test ecx, ecx
je 0x40a4f1
call ecx
mov eax, dword [0x48b33c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00461231
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10