Function at 0x10007fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047f64
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 0x1000801e
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 [0x10056a14]
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 [0x10056a14]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
push eax
push esi
call fcn.1000a690
add esp, 8
mov edx, dword [0x10056a14]
lea ecx, [edx + 0x340]
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 [0x10056984]
push eax
call fcn.10028e20
add esp, 0x10
mov dword [ebp - 0x1c], 0
mov ecx, dword [0x10056a14]
cmp dword [ecx + 0x298], 3
je 0x1000822f
lea ecx, [ebp - 0x40]
call fcn.10030d20
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 0x10008115
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 0x10008123
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.10031000
test eax, eax
jne 0x10008171
mov eax, dword [esi + 4]
cmp eax, edi
jne 0x10008141
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 0x10050320
lea ecx, [ebp - 0x40]
call fcn.10031270
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x10008171
push eax
call fcn.1002f6e0
push eax
push str.write_Def_failed:__s
mov ecx, dword [0x10056984]
push ecx
call fcn.10028ee0
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.10031120
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 0x10008199
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.10031000
test eax, eax
jne 0x100081de
mov ecx, dword [ebp + 0xc]
push ecx
push str.Port
lea ecx, [ebp - 0x40]
call fcn.10031240
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x100081de
push eax
call fcn.1002f6e0
push eax
push str.write_Port_failed:__s
mov edx, dword [0x10056984]
push edx
call fcn.10028ee0
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.10031120
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x10008215
lea ecx, [eax - 1]
mov al, byte [ecx]
test al, al
je 0x10008200
cmp al, 0xff
je 0x10008200
dec al
mov byte [ecx], al
jmp 0x10008215
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
push ecx
call fcn.10047cb0
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x40]
call fcn.10030d40
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.10008630
test al, al
je 0x100083d5
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 0x1000829f
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 0x1000829f
mov eax, dword [esi + 0x80]
cmp eax, ebx
je 0x1000829f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x80], ebx
cmp dword [esi + 0x80], ebx
jne 0x100082bb
push str.login:_another_session_is_connected.
mov ecx, dword [0x10056984]
push ecx
call fcn.10028ea0
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 0x10008323
mov dword [ebp - 0x7c], ebx
lea edx, [ebp - 0x7c]
push edx
push ebx
push esi
push 0x10009b60
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 0x1000833c
push ebx
call fcn.1002f6e0
add esp, 4
push eax
add esi, 0xe
push esi
push str._comm__create_thread__s__failed:__s
push 0x10050794
lea ecx, [ebp - 0x80]
call fcn.10030b00
push eax
call fcn.10030b10
add esp, 0x10
jmp 0x1000833c
add esi, 0x90
mov dword [ebp - 0x84], esi
mov eax, dword [esi]
cmp eax, ebx
je 0x1000833c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [edi + 0x2c8]
call fcn.1000ff00
test al, al
jne 0x1000838a
push str.login:_connect_to_service_failed
mov ecx, dword [0x10056984]
push ecx
call fcn.10028f60
add esp, 8
push 0xa95f74
mov ecx, edi
call fcn.100093d0
mov byte [ebp - 0x48], 0
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x10008385
mov dword [ebp - 0x8c], eax
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 0x14], ebx
jmp 0x100083f6
push str.login:_connect_to_service_succeed.
mov eax, dword [0x10056984]
push eax
call fcn.10028ea0
add esp, 8
mov dword [edi], 2
mov byte [ebp - 0x4c], 1
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x100083bd
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 0x100083e8
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