Function at 0x1004c2f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008f7e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [str.GlobalConnectionHistoryMutex]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
mov edi, ecx
push ebx
push ebx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xac], 0x10094520
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0xa8], esi
je 0x1004c34d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1004c359
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xa4], eax
cmp esi, ebx
mov dword [ebp - 4], ebx
jne 0x1004c3ca
mov esi, dword [edi + 0x14c]
mov dword [ebp + 8], 0x92e
cmp esi, ebx
jne 0x1004c377
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp + 8]
push ecx
push str.F:SCVLibScvLIBNetAvailableNetworkAdapters.cpp
lea ecx, [ebp - 0x80]
call fcn.1006ae90
mov edx, dword [ebp - 0xa4]
mov ecx, dword [str.AvailableNetworkAdaptersFunction]
push edx
push esi
push 0x100a97f4
push 1
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.1006b020
add esp, 0x18
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.1006afc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dl, byte [ebp + 0xb]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x24], dl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
mov byte [ebp - 0x68], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 4
cmp eax, 2
jne 0x1004c408
mov eax, dword [edi + 0x20]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebx
je 0x1004c417
jmp 0x1004c415
mov eax, dword [edi + 0x30]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp eax, ebx
je 0x1004c417
mov edx, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov esi, dword [ebp - 0x64]
cmp esi, ebx
jne 0x1004c43b
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0x14], 1
push ebx
lea edx, [ebp - 0x13c]
push ebx
push edx
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push ebx
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 6
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov eax, dword [ebp - 0x144]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
push 1
push esi
mov ecx, dword [eax + 4]
mov byte [ebp - 4], 7
mov dword [ebp + ecx - 0x144], edx
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
cmp eax, ebx
jne 0x1004c4cd
mov eax, dword [ebp - 0x144]
push ebx
push 2
mov ecx, dword [eax + 4]
lea ecx, [ebp + ecx - 0x144]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, dword [ebp - 0x144]
mov byte [ebp - 4], 8
mov eax, dword [edx + 4]
test byte [ebp + eax - 0x140], 6
je 0x1004c573
mov eax, dword [ebp - 0x64]
cmp eax, ebx
jne 0x1004c4f4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0xa0]
push 0x100a97cc
push eax
call fcn.1005f8c0
add esp, 0xc
mov esi, dword [ebp - 0x9c]
mov byte [ebp - 4], 9
cmp esi, ebx
jne 0x1004c51d
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov cl, byte [ebp + 0xb]
push ebx
mov byte [ebp - 0x78], cl
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x17c]
push edx
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x17c]
push 0x1009ab50
push eax
mov dword [ebp - 0x17c], 0x10094514
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp + eax - 0x138]
lea eax, [ebp + eax - 0x144]
and ecx, 0xfffffffe
mov edi, 1
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
test byte [ebp + edx - 0x140], 1
jne 0x1004c786
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x90], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x90]
lea edx, [ebp - 0x144]
push ecx
push edx
mov byte [ebp - 4], 0xb
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::getline_class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
mov eax, dword [ebp - 0x88]
add esp, 8
cmp eax, ebx
jbe 0x1004c76f
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
jne 0x1004c5f0
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 9
push eax
lea ecx, [ebp - 0x58]
call fcn.1008a1b0
cmp eax, 2
jl 0x1004c76f
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x78], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov cl, byte [ebp + 0xb]
push ebx
mov byte [ebp - 0xa0], cl
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xd
call fcn.1003a840
mov eax, dword [ebp - 0x8c]
mov byte [ebp - 4], 0xe
cmp eax, ebx
jne 0x1004c650
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [ebp - 0x78]
push 9
push edx
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.10089ed0
mov eax, dword [ebp - 0x8c]
cmp eax, ebx
jne 0x1004c66f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp - 0xa0]
push 9
push ecx
push 1
push eax
lea ecx, [ebp - 0x58]
call fcn.10089ed0
mov eax, dword [ebp - 0x9c]
cmp eax, ebx
jne 0x1004c692
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
lea edx, [ebp - 0x160]
push eax
push edx
call fcn.1003b7f0
add esp, 0xc
push 0x50
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0xf
je 0x1004c6dc
mov edx, dword [ebp - 0x74]
cmp edx, ebx
jne 0x1004c6c7
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea esi, [ebp - 0x160]
mov eax, edi
push esi
push edx
push eax
inc edi
call fcn.10045c30
mov esi, eax
jmp 0x1004c6de
xor esi, esi
cmp esi, ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0x10094500
je 0x1004c714
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
cmp ecx, ebx
mov byte [ebp - 4], 0x10
je 0x1004c70f
push esi
call fcn.100764b0
jmp 0x1004c711
xor eax, eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.1004e710
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xe
cmp ecx, ebx
mov dword [ebp - 0x30], 0x10094500
je 0x1004c73f
call fcn.100511f0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xd
call fcn.1003a860
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x1004c58c
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
cmp eax, ebx
jne 0x1004c7b7
mov edx, dword [ebp - 0x144]
push ebx
mov eax, dword [edx + 4]
lea ecx, [ebp + eax - 0x144]
mov eax, dword [ebp + eax - 0x140]
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov esi, dword [ebp - 0x28]
xor edi, edi
mov dword [ebp - 4], 3
lea ecx, [esi + 0x5c]
push ecx
lea ecx, [ebp - 0xb4]
call fcn.10067f70
mov dl, byte [ebp + 0xb]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 0x40], dl
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x50], al
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], 0x100944fc
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 2
jne 0x1004c8ee
sub esp, 8
lea edx, [ebp - 0x50]
mov eax, esp
mov dword [ebp + 8], esp
mov dword [eax + 4], edx
mov dword [eax], 0x100944fc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x54]
mov bl, 0x17
push eax
push ecx
mov byte [ebp - 4], bl
add esi, 0x110
call fcn.10051960
mov edx, dword [eax]
add esp, 8
lea ecx, [ebp - 0x24]
push edx
call fcn.1004e6e0
push eax
lea ecx, [ebp - 0x24]
call fcn.1004e6d0
push eax
mov ecx, esi
call fcn.1004e6e0
push eax
mov ecx, esi
call fcn.1004e6d0
push eax
lea eax, [ebp - 0x14]
jmp 0x1004c945
sub esp, 8
lea edx, [ebp - 0x50]
mov eax, esp
mov dword [ebp + 8], esp
mov dword [eax + 4], edx
mov dword [eax], 0x100944fc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x54]
mov bl, 0x17
push eax
push ecx
mov byte [ebp - 4], bl
add esi, 0x120
call fcn.10051960
mov edx, dword [eax]
add esp, 8
lea ecx, [ebp - 0x24]
push edx
call fcn.1004e6e0
push eax
lea ecx, [ebp - 0x24]
call fcn.1004e6d0
push eax
mov ecx, esi
call fcn.1004e6e0
push eax
mov ecx, esi
call fcn.1004e6d0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10051970
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 8]
mov dword [esi + 8], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
add esp, 0x20
cmp eax, edi
mov dword [esi + 0xc], ecx
je 0x1004c9e3
mov edx, dword [ebp - 0x38]
sub edx, eax
sar edx, 3
je 0x1004c9e3
mov edi, dword [ebp - 0x64]
mov dword [ebp + 8], 0x97c
test edi, edi
jne 0x1004c997
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0x14c]
test esi, esi
jne 0x1004c9aa
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea ecx, [ebp + 8]
push ecx
push str.F:SCVLibScvLIBNetAvailableNetworkAdapters.cpp
lea ecx, [ebp - 0x80]
call fcn.1006ae90
mov edx, dword [str.AvailableNetworkAdaptersFunction]
push edi
push esi
push 0x100a976c
push 0xb
push edx
push eax
mov byte [ebp - 4], 0x1c
call fcn.1006b020
add esp, 0x18
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], bl
call fcn.1006afc0
mov edi, dword [ebp - 0x48]
mov esi, dword [ebp - 0x4c]
cmp esi, edi
mov byte [ebp - 4], 0x15
je 0x1004ca06
xor ebx, ebx
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
add esi, 8
cmp esi, edi
jne 0x1004c9f3
mov esi, dword [ebp - 0x4c]
jmp 0x1004ca08
xor ebx, ebx
push esi
call fcn.10088e50
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
add esp, 4
cmp esi, edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 0x14
je 0x1004ca39
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx]
add esi, 8
cmp esi, edi
jne 0x1004ca28
mov esi, dword [ebp - 0x3c]
push esi
call fcn.10088e50
add esp, 4
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
call fcn.10067fb0
mov eax, dword [ebp - 0x64]
cmp eax, ebx
je 0x1004ca7e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1004ca75
cmp al, 0xff
je 0x1004ca75
dec al
mov byte [ecx], al
jmp 0x1004ca7e
push ecx
call fcn.10088e50
add esp, 4
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
cmp esi, edi
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 0
je 0x1004caa6
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
add esi, 8
cmp esi, edi
jne 0x1004ca95
mov esi, dword [ebp - 0x20]
push esi
call fcn.10088e50
mov esi, dword [ebp - 0xa8]
add esp, 4
cmp esi, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
je 0x1004cad0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4