Function at 0x10006c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003efb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 4], 0
lea edi, [ebx + 4]
mov dword [ebp - 0x14], edi
test edi, edi
je 0x10006c9e
mov dword [ebp - 0x54], edi
push 0xffffffffffffffff
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x1004b470]
mov dword [ebp - 0x5c], ecx
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push 0
mov esi, dword [ebp + 8]
push esi
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov dword [ebp - 0x58], eax
mov ecx, dword [0x1004b470]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
push eax
push esi
call fcn.10009310
add esp, 8
mov edx, dword [0x1004b470]
lea ecx, [edx + 0x150]
mov dword [ebp - 0x64], ecx
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [eax]
push edx
push 0
push esi
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
push eax
push eax
push str.Center::login____current_thread_id___d_0x_06x_
mov eax, dword [0x1004b3e0]
push eax
call fcn.1002a620
add esp, 0x10
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x1004b470]
cmp dword [ecx + 0xac], 3
je 0x10006eb5
lea ecx, [ebp - 0x40]
call fcn.1002d020
mov dl, byte [ebp - 0x44]
mov byte [ebp - 0x2c], dl
push 0
lea ecx, [ebp - 0x2c]
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, str.SoftwareGWClient_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
push 1
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x10006d95
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x68], edi
mov ecx, ebx
mov esi, str.SoftwareGWClient_
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
xor edi, edi
cmp eax, edi
jne 0x10006da3
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 1
push 1
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.1002d300
test eax, eax
jne 0x10006df4
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x10006dc1
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
push 0x100461dc
lea ecx, [ebp - 0x40]
call fcn.1002d570
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10006df4
push eax
call fcn.1002ba20
add esp, 4
push eax
push str.write_Def_failed:__s
mov ecx, dword [0x1004b3e0]
push ecx
call fcn.1002a6e0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.1002d420
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push edi
push esi
lea ecx, [ebp - 0x2c]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp - 0x28]
cmp eax, edi
jne 0x10006e1c
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 1
push 1
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.1002d300
test eax, eax
jne 0x10006e64
mov ecx, dword [ebp + 0xc]
push ecx
push str.Port
lea ecx, [ebp - 0x40]
call fcn.1002d540
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10006e64
push eax
call fcn.1002ba20
add esp, 4
push eax
push str.write_Port_failed:__s
mov edx, dword [0x1004b3e0]
push edx
call fcn.1002a6e0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.1002d420
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x10006e9b
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10006e86
cmp al, 0xff
je 0x10006e86
dec al
mov byte [ecx], al
jmp 0x10006e9b
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
push ecx
call fcn.1003ed30
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x40]
call fcn.1002d040
mov ebx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, ebx
call fcn.100072b0
test al, al
je 0x1000705b
lea esi, [ebx + 8]
mov dword [ebp - 0x78], esi
push esi
xor ebx, ebx
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
mov dword [esi + 0x80], eax
cmp eax, ebx
jne 0x10006f25
push esi
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [esi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10006f25
mov eax, dword [esi + 0x80]
cmp eax, ebx
je 0x10006f25
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x80], ebx
cmp dword [esi + 0x80], ebx
jne 0x10006f41
push str.login:_another_session_is_connected.
mov ecx, dword [0x1004b3e0]
push ecx
call fcn.1002a6a0
add esp, 8
mov edi, dword [ebp - 0x98]
lea esi, [edi + 0x98]
mov dword [ebp - 0x88], esi
mov al, byte [esi + 0xc]
test al, al
jne 0x10006fa9
mov dword [ebp - 0x7c], ebx
lea edx, [ebp - 0x7c]
push edx
push ebx
push esi
push 0x100087d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x7c]
mov dword [esi + 4], eax
cmp dword [esi + 8], ebx
jne 0x10006fc2
push ebx
call fcn.1002ba20
add esp, 4
push eax
add esi, 0xe
push esi
push str._comm__create_thread__s__failed:__s
push 0x10046650
lea ecx, [ebp - 0x80]
call fcn.1002ce00
push eax
call fcn.1002ce10
add esp, 0x10
jmp 0x10006fc2
add esi, 0x90
mov dword [ebp - 0x84], esi
mov eax, dword [esi]
cmp eax, ebx
je 0x10006fc2
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [edi + 0x2c8]
call fcn.1000eab0
test al, al
jne 0x10007010
push str.login:_connect_to_service_failed
mov ecx, dword [0x1004b3e0]
push ecx
call fcn.1002a760
add esp, 8
push 0xa95f74
mov ecx, edi
call fcn.10008040
mov byte [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1000700b
mov dword [ebp - 0x8c], eax
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x14], ebx
jmp 0x1000707c
push str.login:_connect_to_service_succeed.
mov eax, dword [0x1004b3e0]
push eax
call fcn.1002a6a0
add esp, 8
mov dword [edi], 2
mov byte [ebp - 0x4c], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10007043
mov dword [ebp - 0x90], eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x14], ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
je 0x1000706e
mov dword [ebp - 0x94], edi
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14