Function at 0x40b100
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43d628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push str.CServerContactAgent::StartServerContact_start_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40b315
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40b315
push ebp
push esi
push edi
push 0x478
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, eax
add esp, 4
test edx, edx
je 0x40b169
mov ecx, 0x11e
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx + 0x474], 2
jmp 0x40b16b
xor edx, edx
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x40b1ad
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40b1ad
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x10]
mov ecx, ebp
mov edi, dword [edx + 4]
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]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 8], ebp
mov edi, dword [esp + 0x2c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [sym.imp.MSVCRT.dll_wcscpy]
test edi, edi
je 0x40b1e3
push edi
call ebp
inc eax
lea edx, [eax + eax]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
push edi
mov dword [ecx + 0xc], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
call esi
add esp, 0x10
mov edi, dword [esp + 0x48]
test edi, edi
je 0x40b213
push edi
call ebp
inc eax
lea ecx, [eax + eax]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x18]
push edi
mov dword [edx + 0x460], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x460]
push ecx
call esi
add esp, 0x10
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov dword [ecx + 0x14], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x18], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov dword [edx + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x54]
mov dword [ecx + 0x474], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0x40]
mov dword [ecx + 0x464], eax
mov eax, dword [esp + 0x10]
add eax, 0x20
push edx
push eax
call esi
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
add edx, 0x60
push ecx
push edx
call esi
mov eax, dword [esp + 0x20]
add esp, 0x10
test ebx, ebx
pop edi
pop esi
mov dword [eax + 0x468], ebx
mov dword [esp + 0x38], ebx
pop ebp
je 0x40b297
mov ecx, ebx
call fcn.00404790
push str.CServerContactAgent::StartServerContact_m_vCSList.push_back_n
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 4]
lea edx, [esp + 4]
push edx
push 1
push eax
call fcn.00408ac0
test ebx, ebx
mov dword [esp + 0x10], 0xffffffff
je 0x40b2d0
mov ecx, ebx
call fcn.004047b0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b2e3
mov ecx, dword [esp + 4]
call fcn.0040b0c0
jmp 0x40b2f0
mov eax, dword [esp + 4]
push eax
call fcn.0040aea0
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40b2fe
mov ecx, dword [esp + 4]
mov dword [eax], ecx
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x34
mov ecx, dword [esp + 8]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x34