Function at 0x417e40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x59c
mov eax, dword [0x4b445c]
xor eax, esp
mov dword [esp + 0x598], eax
mov eax, dword [esp + 0x5c8]
mov edx, dword [esp + 0x5d0]
push ebx
mov ebx, dword [esp + 0x5b4]
push ebp
mov ebp, dword [esp + 0x5cc]
push esi
mov esi, dword [esp + 0x5b4]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x5dc]
push 0x104
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5e8]
lea ecx, [esp + 0x4a8]
push 0
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.0045eb50
add esp, 0xc
push 0x104
lea edx, [esp + 0x4a8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x4a4]
push 0x5c
push eax
call fcn.0045f020
add esp, 8
push str.Multiplexer.log
lea ecx, [esp + 0x4a8]
push ecx
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x4a4]
push 1
push edx
call fcn.00439ec0
mov eax, dword [0x4bae60]
add esp, 8
test eax, eax
je 0x417f19
push str.CTcpMultiplexer_:_InitializeConfig_start...
push eax
call fcn.00430fd0
add esp, 8
mov eax, dword [esp + 0x5b0]
mov ecx, dword [esp + 0x5b4]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
push 0x484
mov dword [0x4ba8dc], eax
lea eax, [esp + 0x24]
push 0
push eax
mov dword [0x4ba8e0], ecx
call fcn.0045eb50
mov eax, dword [0x4bae60]
mov cl, byte [esp + 0x5d4]
mov dl, byte [esp + 0x5d8]
add esp, 0xc
test eax, eax
mov byte [esp + 0x20], cl
mov byte [esp + 0x21], dl
je 0x417f7a
push esi
push str.CTcpMultiplexer_:_gethostbyname_start_strDestinationAddress___s...
push eax
call fcn.00430fd0
add esp, 0xc
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x417f9b
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea edx, [esp + 0x26]
push edx
jmp 0x417fc4
cmp dword [0x4bae60], 0
je 0x417fbe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [0x4bae60]
push str.CTcpMultiplexer_:_gethostbyname_WSAGetLastError___d...
push eax
call fcn.00430fd0
add esp, 0xc
push esi
lea ecx, [esp + 0x26]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call esi
mov eax, dword [0x4bae60]
test eax, eax
je 0x417fe8
lea edx, [esp + 0x22]
push edx
push str.CTcpMultiplexer_:_getip_end_config.m_strDestinationAddress___s...
push eax
call fcn.00430fd0
add esp, 0xc
mov eax, dword [esp + 0x5bc]
push ebx
lea ecx, [esp + 0x134]
push ecx
mov dword [esp + 0xac], eax
call esi
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x5c4]
mov eax, dword [edi + 0xc]
mov dword [esp + 0x1b0], edx
mov dword [esp + 0x1bc], ecx
mov cl, byte [esp + 0x5d0]
mov dl, cl
neg dl
mov dword [esp + 0x1b8], eax
mov eax, 0x66666667
mov byte [esp + 0x1c0], cl
push ebp
lea ecx, [esp + 0x1c5]
push ecx
sbb edx, edx
and edx, 0x78
add edx, 0xb4
mov dword [esp + 0x4a0], edx
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x4a4], eax
mov dword [esp + 0x4a8], 0xf
call esi
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x245]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x345]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x445]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x485]
push eax
call esi
mov eax, dword [0x4bae60]
test eax, eax
je 0x4180c7
push str.CTcpMultiplexer_:_before_Initialize...
push eax
call fcn.00430fd0
add esp, 8
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call fcn.00417bd0
mov eax, dword [0x4bae60]
test eax, eax
je 0x418101
push str.CTcpMultiplexer_:_after_Initialize...
push eax
call fcn.00430fd0
mov eax, dword [0x4bae60]
add esp, 8
test eax, eax
je 0x418101
push str.Initialized_multiplexer
push eax
call fcn.00430fd0
add esp, 8
mov ecx, edi
call fcn.004177b0
mov eax, dword [0x4bae60]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x418123
push str.Started_multiplexer
push eax
call fcn.00430fd0
add esp, 8
mov ecx, dword [esp + 0x598]
xor ecx, esp
mov eax, 1
call fcn.0045e17e
add esp, 0x59c
ret 0x38