Function at 0x4da530
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f620b
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x51300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x105
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0x18
lea eax, [ebp - 0x118]
mov edx, esp
lea esi, [eax + 1]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4da5b0
sub eax, esi
mov ecx, edx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00402d80
lea ecx, [ebp - 0x130]
call fcn.004c4220
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x200]
call fcn.0040e3d0
mov edx, str.Global_
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1f0]
call fcn.00404280
cmp dword [ebp - 0x11c], 0x10
lea edx, [ebp - 0x130]
push dword [ebp - 0x120]
cmovae edx, dword [ebp - 0x130]
mov ecx, eax
call fcn.0040c1d0
add esp, 4
mov edx, 0x5099d0
push dword [0x515e70]
push ecx
mov ecx, eax
call fcn.00404280
add esp, 4
mov ecx, eax
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___int_]
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00404060
mov eax, dword [ebp - 0x200]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x200]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x204], eax
lea ecx, [ebp - 0x1e8]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
call fcn.00403fc0
lea ecx, [ebp - 0x1e8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1e0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x198]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp - 0x11c]
cmp edx, 0x10
jb 0x4da6ec
mov ecx, dword [ebp - 0x130]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4da6e2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da6e2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004f1f95
add esp, 8
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x515e4c], eax
call esi
cmp eax, 0xb7
je 0x4da738
cmp dword [0x515e4c], 0
jne 0x4da76c
call esi
push eax
push str.CreateMutex_error:__d_n
call fcn.00405d90
add esp, 8
xor bl, bl
mov edx, dword [ebp - 0x134]
cmp edx, 0x10
jb 0x4da77a
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4da770
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4da770
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov bl, 1
jmp 0x4da73a
push edx
push ecx
call fcn.004f1f95
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1f57
mov esp, ebp
pop ebp
ret