Function at 0x406710
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x4a2300]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2cc], ecx
push esi
push edi
test ecx, ecx
je 0x40684b
cmp byte [ecx], 0xef
jne 0x40674d
cmp byte [ecx + 1], 0xbb
jne 0x40674d
cmp byte [ecx + 2], 0xbf
jne 0x40674d
lea eax, [ecx + 3]
mov dword [ebp - 0x2cc], eax
xor edx, edx
lea ecx, [ebp - 0x2cc]
call fcn.00407e20
mov edi, eax
mov dword [ebp - 0x2e4], edi
test edi, edi
je 0x40684b
cmp dword [edi + 4], 4
jne 0x4067d8
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4067ab
push 7
mov edx, str.message
call fcn.00407a10
add esp, 4
test eax, eax
je 0x4067ab
cmp dword [eax + 4], 2
jne 0x4067ab
lea ecx, [eax + 8]
test ecx, ecx
je 0x4067ab
mov ecx, dword [ecx]
test ecx, ecx
je 0x4067ab
push ecx
mov edx, 0x6ae348
call fcn.0040eed0
add esp, 4
cmp dword [edi + 4], 4
jne 0x4067d8
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4067d8
push 6
mov edx, str.status
call fcn.00407a10
add esp, 4
test eax, eax
je 0x4067d8
cmp dword [eax + 4], 3
jne 0x4067d8
movsd xmm0, qword [eax + 8]
jmp 0x4067db
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4a9590], eax
cmp eax, 0xc8
je 0x40685d
push 0x63
lea eax, [ebp - 0x6f]
mov byte [ebp - 0x70], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x70]
push 0x6ae348
push 0x480db4
push eax
call fcn.0045671f
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x70]
push eax
call fcn.0045738c
add esp, 4
push 0x10
push 0x480730
push 0x6ae348
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, edi
call fcn.00409230
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045094b
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 4
jne 0x406b56
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40695f
push 7
mov edx, str.appInfo
call fcn.00407a10
add esp, 4
test eax, eax
je 0x40695f
cmp dword [eax + 4], 4
jne 0x40695f
mov esi, dword [eax + 8]
test esi, esi
je 0x40695f
push 9
mov edx, str.appConfig
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406931
cmp dword [eax + 4], 4
jne 0x406931
mov edi, dword [eax + 8]
test edi, edi
je 0x40692b
mov edx, str.MaximumConnectionsPerDevice
mov ecx, edi
call fcn.00409150
cvttsd2si eax, xmm0
mov edx, str.NewConnectionsPerSecondPerDevice
mov ecx, edi
mov dword [0x4a9598], eax
call fcn.00409150
cvttsd2si eax, xmm0
push 0x63
push 0
mov byte [ebp - 0x70], 0
mov dword [0x4a959c], eax
lea eax, [ebp - 0x6f]
push eax
call fcn.00451650
add esp, 0xc
lea eax, [ebp - 0x70]
push dword [0x4a9598]
push 0x480e34
push eax
call fcn.0045671f
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x70]
push eax
call fcn.0045738c
add esp, 4
mov edi, dword [ebp - 0x2e4]
push 9
mov edx, str.appStatus
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406953
cmp dword [eax + 4], 3
jne 0x406953
movsd xmm0, qword [eax + 8]
jmp 0x406956
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4a9594], eax
cmp dword [edi + 4], 4
jne 0x406b56
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406ab4
push 0xa
mov edx, str.nodeConfig
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406ab4
cmp dword [eax + 4], 4
jne 0x406ab4
mov esi, dword [eax + 8]
test esi, esi
je 0x406ab4
push 0x17
mov edx, str.ClientConnectCountLimit
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x4069c2
cmp dword [eax + 4], 3
jne 0x4069c2
movsd xmm0, qword [eax + 8]
jmp 0x4069c5
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x1e
mov edx, str.TerminalBandwidthDownlinkLimit
mov ecx, esi
mov dword [0x4a95a0], eax
call fcn.00407a10
add esp, 4
test eax, eax
je 0x4069f0
cmp dword [eax + 4], 3
jne 0x4069f0
movsd xmm0, qword [eax + 8]
jmp 0x4069f3
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x1c
mov edx, str.TerminalBandwidthUplinkLimit
mov ecx, esi
mov dword [0x4a95a4], eax
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406a1e
cmp dword [eax + 4], 3
jne 0x406a1e
movsd xmm0, qword [eax + 8]
jmp 0x406a21
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x29
mov edx, str.TerminalPacketForwardingRateDownlinkLimit
mov ecx, esi
mov dword [0x4a95a8], eax
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406a4c
cmp dword [eax + 4], 3
jne 0x406a4c
movsd xmm0, qword [eax + 8]
jmp 0x406a4f
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x27
mov edx, str.EndpointPacketForwardingRateUplinkLimit
mov ecx, esi
mov dword [0x4a95ac], eax
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406a7a
cmp dword [eax + 4], 3
jne 0x406a7a
movsd xmm0, qword [eax + 8]
jmp 0x406a7d
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0xb
mov edx, str.IdleTimeout
mov ecx, esi
mov dword [0x4a95b0], eax
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406aa8
cmp dword [eax + 4], 3
jne 0x406aa8
movsd xmm0, qword [eax + 8]
jmp 0x406aab
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4a95b4], eax
cmp dword [edi + 4], 4
jne 0x406b56
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406b4b
push 0xf
mov edx, str.appClientConfig
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406b4b
cmp dword [eax + 4], 4
jne 0x406b4b
mov esi, dword [eax + 8]
test esi, esi
je 0x406b4b
push 0xb
mov edx, str.releaseType
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406b0b
cmp dword [eax + 4], 3
jne 0x406b0b
movsd xmm0, qword [eax + 8]
jmp 0x406b0e
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov edx, str.IsPassShowTip
mov ecx, esi
mov dword [0x4a95b8], eax
call fcn.00409110
cmp eax, 1
jne 0x406b4b
mov edx, str.IsPassShowTip
mov ecx, esi
call fcn.004090d0
mov ecx, dword [0x4a95bc]
cmp byte [eax], 0x31
mov eax, 1
cmove ecx, eax
mov dword [0x4a95bc], ecx
cmp dword [edi + 4], 4
jne 0x406b56
mov ecx, dword [edi + 8]
jmp 0x406b58
xor ecx, ecx
mov edx, str.appInfo.sourceServers
call fcn.00409190
test eax, eax
je 0x406d94
cmp dword [eax + 4], 5
jne 0x406d94
mov eax, dword [eax + 8]
mov dword [ebp - 0x2dc], eax
test eax, eax
je 0x406d94
mov ecx, dword [eax + 8]
mov edx, 0xbb8
cmp ecx, edx
mov dword [ebp - 0x2d4], 0
cmova ecx, edx
mov dword [ebp - 0x2d8], ecx
test ecx, ecx
je 0x406d94
mov edx, dword [ebp - 0x2d8]
mov edi, 0x4adc76
mov dword [ebp - 0x2d0], edi
xor ecx, ecx
lea ecx, [ecx]
cmp ecx, dword [eax + 8]
jae 0x406d73
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x406d6d
cmp dword [eax + 4], 4
jne 0x406d6d
mov esi, dword [eax + 8]
mov dword [ebp - 0x2e0], esi
test esi, esi
je 0x406d6d
push 9
mov edx, str.virtualIp
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406ca3
cmp dword [eax + 4], 2
jne 0x406ca3
add eax, 8
je 0x406ca3
mov eax, dword [eax + 4]
mov dword [ebp - 0x2e8], eax
test eax, eax
jle 0x406ca3
push 9
mov edx, str.virtualIp
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406d61
cmp dword [eax + 4], 2
jne 0x406d61
add eax, 8
je 0x406d61
mov edi, dword [eax]
test edi, edi
je 0x406d5b
push str.127.
push edi
call fcn.00456b40
add esp, 8
cmp eax, edi
jne 0x406d5b
mov esi, dword [ebp - 0x2d0]
push 0x64
add esi, 0xffffff9c
push 0
push esi
call fcn.00451650
add esp, 0xc
push dword [ebp - 0x2e8]
push edi
push esi
call fcn.00451000
mov esi, dword [ebp - 0x2e0]
add esp, 0xc
push 0xa
mov edx, str.sourcePort
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406d18
cmp dword [eax + 4], 2
jne 0x406d18
lea edi, [eax + 8]
test edi, edi
je 0x406d18
mov edi, dword [edi + 4]
test edi, edi
jle 0x406d18
cmp edi, 0x1000
jg 0x406d5b
mov edx, str.sourcePort
mov ecx, esi
call fcn.004090d0
mov dword [ebp - 0x2e0], eax
test eax, eax
je 0x406d5b
push 0x1000
push 0
push dword [ebp - 0x2d0]
call fcn.00451650
add esp, 0xc
push edi
push dword [ebp - 0x2e0]
push dword [ebp - 0x2d0]
call fcn.00451000
add esp, 0xc
push 0xa
mov edx, str.serverType
mov ecx, esi
call fcn.00407a10
add esp, 4
test eax, eax
je 0x406d48
cmp dword [eax + 4], 3
jne 0x406d48
movsd xmm0, qword [eax + 8]
mov edi, dword [ebp - 0x2d0]
cvttsd2si eax, xmm0
mov word [edi - 0x66], ax
jmp 0x406d61
mov edi, dword [ebp - 0x2d0]
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov word [edi - 0x66], ax
jmp 0x406d61
mov edi, dword [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x2dc]
inc ecx
add edi, 0x1066
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2d0], edi
cmp ecx, edx
jb 0x406bc0
mov edi, dword [ebp - 0x2e4]
cmp dword [edi + 4], 4
jne 0x406d9f
mov ecx, dword [edi + 8]
jmp 0x406da1
xor ecx, ecx
mov edx, str.appClientConfig.keywords
call fcn.00409190
test eax, eax
je 0x406f27
cmp dword [eax + 4], 5
jne 0x406f27
mov eax, dword [eax + 8]
mov dword [ebp - 0x2d8], eax
test eax, eax
je 0x406f27
mov edx, dword [eax + 8]
mov ecx, 0x1e
cmp edx, ecx
cmova edx, ecx
xor ecx, ecx
mov dword [ebp - 0x2e8], edx
mov dword [ebp - 0x2d0], ecx
test edx, edx
je 0x406f27
mov edi, 0x4a95c0
mov dword [ebp - 0x2d4], edi
lea esp, [esp]
cmp ecx, dword [eax + 8]
jae 0x406e20
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x406e20
cmp dword [eax + 4], 2
jne 0x406e20
lea esi, [eax + 8]
test esi, esi
je 0x406e20
mov esi, dword [esi]
jmp 0x406e22
xor esi, esi
test esi, esi
je 0x406f00
push 0x257
lea eax, [ebp - 0x2c7]
mov byte [ebp - 0x2c8], 0
push 0
push eax
call fcn.00451650
add esp, 0xc
mov edx, esi
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x406e50
lea edi, [ebp - 0x2c8]
sub esi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406e60
mov ecx, esi
mov dword [ebp - 0x2e0], esi
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2e0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c8]
lea edx, [ecx + 1]
jmp 0x406e90
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e90
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x406eb7
nop
cmp byte [ebp + eax - 0x2c8], 0x2f
jne 0x406eb2
mov byte [ebp + eax - 0x2c8], 0x5c
inc eax
cmp eax, ecx
jl 0x406ea0
cmp byte [ebp - 0x2c8], 0x5c
lea eax, [ebp - 0x2c8]
mov edi, dword [ebp - 0x2d4]
lea esi, [ebp - 0x2c7]
push 0x258
push 0
push edi
cmovne esi, eax
call fcn.00451650
mov ecx, edi
add esp, 0xc
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x406ee7
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2d8]
inc ecx
add edi, 0x258
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2d4], edi
cmp ecx, edx
jb 0x406e00
mov edi, dword [ebp - 0x2e4]
mov ecx, edi
call fcn.00409230
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045094b
mov esp, ebp
pop ebp
ret