Function at 0x100081a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100143b0
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x1001b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], ecx
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x10008298
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call edi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
push eax
push 0x100169ec
lea eax, [ebp - 0x118]
push str.CONOUT_
push eax
call esi
push 2
call edi
push eax
push 0x100169ec
lea eax, [ebp - 0x118]
push str.CONOUT_
push eax
call esi
push 0
call edi
push eax
push 0x100169f8
lea eax, [ebp - 0x118]
push str.CONIN_
push eax
call esi
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 0x3c
mov eax, dword [edx]
push 0
push 0
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::clog]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.samp.dll
call edi
cmp dword [eax + 0x21a0f8], 0
jne 0x1000867a
test ebx, ebx
je 0x100082c9
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x118], 0
lea edx, [ebp - 0x114]
push dword [ebp - 0x118]
lea ecx, [ebp - 0x13c]
call fcn.1000be30
add esp, 4
lea eax, [ebp - 0x154]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x13c]
call fcn.100044b0
push ecx
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.10009ad0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x140]
cmp ecx, 8
jb 0x10008356
mov edx, dword [ebp - 0x154]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000834c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100083ac
push ecx
push edx
call fcn.10012893
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 7
mov word [ebp - 0x154], ax
cmp ecx, 8
jb 0x100083bc
mov edx, dword [ebp - 0x13c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100083b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100083b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10012893
add esp, 8
mov ebx, dword [ebp - 0x158]
lea ecx, [ebp - 0x16c]
cmp ebx, 0x10
jb 0x1000843a
mov edi, dword [ebp - 0x16c]
mov ecx, str._simple_client.asi
mov eax, edi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10008400
test dl, dl
je 0x100083fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10008400
add eax, 2
add ecx, 2
test dl, dl
jne 0x100083e0
xor esi, esi
jmp 0x10008405
sbb esi, esi
or esi, 1
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10008428
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008428
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.10012893
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 8
jmp 0x10008465
mov eax, str._simple_client.asi
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10008460
test dl, dl
je 0x1000845c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10008460
add ecx, 2
add eax, 2
test dl, dl
jne 0x10008440
xor esi, esi
jmp 0x10008465
sbb esi, esi
or esi, 1
test esi, esi
jne 0x100086d3
call fcn.100066e0
push 1
call fcn.1001242f
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], 8
push ecx
push esi
push eax
push 0x1000d8d0
push esi
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x124], eax
test eax, eax
je 0x10008668
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x10008660
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x10008660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10006590
mov dword [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x100084ff
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, esi
call fcn.1000c180
add esp, 4
mov ecx, eax
push 0x1000a580
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___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x128]
cmp ecx, 0x10
jb 0x1000855c
mov edx, dword [ebp - 0x13c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10008552
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10008552
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10012893
add esp, 8
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1001bfcc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1001c080]
cmp eax, dword [ecx + 4]
jle 0x100085a7
push 0x1001c080
call fcn.10012915
add esp, 4
cmp dword [0x1001c080], 0xffffffff
jne 0x100085a7
push str.samp.dll
call edi
push 0x1001c080
mov dword [0x1001c084], eax
call fcn.100128c4
add esp, 4
cmp dword [0x1001c084], 0
je 0x1000863c
call fcn.1000f9f0
cmp eax, 0xffffffff
je 0x1000863c
push 0x28
call fcn.1001242f
mov edi, eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 4], 0xb
lea esi, [edi + 0xc]
xorps xmm0, xmm0
mov ecx, esi
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x53bee0
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj2_class_hook_void____cdecl___void___void____cdecl___void___.0
call fcn.1000de10
mov dword [0x1001bff4], esi
mov esi, dword [0x1001bff8]
mov dword [0x1001bff8], edi
test esi, esi
je 0x1000863c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1000863c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1000863c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001241c
mov esp, ebp
pop ebp
ret 4
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x120], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push str.Relaunch_SA:MP_manchik_
lea ecx, [ebp - 0x13c]
call fcn.10007aa0
push 0x10016c5c
lea ecx, [ebp - 0x154]
mov dword [ebp - 4], 0
call fcn.10007aa0
push str.Informer
lea ecx, [ebp - 0x184]
mov byte [ebp - 4], 1
call fcn.10007aa0
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.10004f50
push str.Plugin_name_must_be___simple_client.asi__
lea ecx, [ebp - 0x184]
call fcn.10007aa0
push 0x10016cd0
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], 5
call fcn.10007aa0
push str.Informer
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 6
call fcn.10007aa0
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.10004f50
int3