Function at 0x402560
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x409a2a
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x44]
mov eax, dword [esi]
push ecx
push ebp
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [esi + 0x64c]
mov edi, dword [esi + 0x648]
cmp edi, ebx
je 0x4025b5
push ebp
push edi
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
jne 0x4025b5
add edi, 0x10
cmp edi, ebx
jne 0x40259f
mov eax, dword [esi + 0x64c]
xor ebx, ebx
cmp edi, eax
jne 0x402647
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x1c], dl
push ecx
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
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 eax, dword [esi + 0x64c]
lea ecx, [esi + 0x644]
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
push edx
push 1
push eax
call fcn.00403930
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
cmp eax, ebx
je 0x40263b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x402632
cmp al, 0xff
je 0x402632
dec al
mov byte [ecx], al
jmp 0x40263b
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esi + 0x5e4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ebp, [esi + 0x608]
push ebp
mov dword [esp + 0x44], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1050
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov dword [esp + 0x34], 1
je 0x4026c6
mov dl, byte [esp + 0x44]
lea ecx, [edi + 0x10]
push ebx
mov byte [ecx], dl
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 al, byte [esp + 0x44]
lea ecx, [edi + 0x1030]
push ebx
mov byte [esp + 0x38], 2
mov byte [ecx], 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 dl, byte [esp + 0x44]
lea ecx, [edi + 0x1040]
push ebx
mov byte [esp + 0x38], 3
mov byte [ecx], dl
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 0x4026c8
xor edi, edi
mov eax, dword [esp + 0x3c]
push 0x80
mov dword [esp + 0x38], 0xffffffff
mov dword [edi], esi
mov dword [edi + 4], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov dword [esp + 0x34], 4
je 0x4026ff
mov ecx, eax
call fcn.00408280
jmp 0x402701
xor eax, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x34], 0xffffffff
push ecx
push ebx
push edi
push 0x402f40
push ebx
push ebx
mov dword [edi + 0x102c], eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
je 0x402788
mov edx, dword [esp + 0x44]
mov edi, dword [esi + 0x5cc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 4]
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
cmp edi, ebx
mov ecx, edi
jne 0x402751
mov ecx, eax
cmp ebp, ebx
mov dword [eax], ecx
jne 0x402759
mov ebp, eax
mov dword [eax + 4], ebp
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
push edx
mov dword [ecx], eax
add eax, 8
push eax
call fcn.00403bf0
mov eax, dword [esi + 0x5d0]
mov ebp, dword [esp + 0x48]
add esp, 8
inc eax
mov dword [esi + 0x5d0], eax
jmp 0x4027a7
call dword [sym.imp.MSVCRT.dll__errno]
mov eax, dword [eax]
mov ecx, esi
push eax
push str.AddClient
push str._beginthreadex_...__failure
push str.UMServer.log
call fcn.00408090
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc