Function at 0x406ba0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x264], ecx
push esi
push edi
test ecx, ecx
je 0x406cf1
cmp byte [ecx], 0xef
jne 0x406bdd
cmp byte [ecx + 1], 0xbb
jne 0x406bdd
cmp byte [ecx + 2], 0xbf
jne 0x406bdd
lea eax, [ecx + 3]
mov dword [ebp - 0x264], eax
xor edx, edx
lea ecx, [ebp - 0x264]
call fcn.004090c0
mov edi, eax
mov dword [ebp - 0x27c], edi
test edi, edi
je 0x406cf1
cmp dword [edi + 4], 4
jne 0x406c68
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406c3b
push 7
mov edx, str.message
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406c3b
cmp dword [eax + 4], 2
jne 0x406c3b
lea ecx, [eax + 8]
test ecx, ecx
je 0x406c3b
mov ecx, dword [ecx]
test ecx, ecx
je 0x406c3b
push ecx
mov edx, 0x6b03b8
call fcn.0040faf0
add esp, 4
cmp dword [edi + 4], 4
jne 0x406c68
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406c68
push 6
mov edx, str.status
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406c68
cmp dword [eax + 4], 3
jne 0x406c68
movsd xmm0, qword [eax + 8]
jmp 0x406c6b
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4ab600], eax
cmp eax, 0xc8
je 0x406d03
push 0x1ff
lea eax, [ebp - 0x207]
mov byte [ebp - 0x208], 0
push 0
push eax
call fcn.00452270
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x6b03b8
push 0x482e5c
push eax
call fcn.004573bf
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.004580ba
add esp, 4
push 0x10
push 0x482770
push 0x6b03b8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, edi
call fcn.0040a4d0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451570
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 4
jne 0x407016
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406e1f
push 7
mov edx, str.appInfo
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406e1f
cmp dword [eax + 4], 4
jne 0x406e1f
mov esi, dword [eax + 8]
test esi, esi
je 0x406e1f
push 9
mov edx, str.appConfig
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406df1
cmp dword [eax + 4], 4
jne 0x406df1
mov edi, dword [eax + 8]
test edi, edi
je 0x406deb
mov edx, str.MaximumConnectionsPerDevice
mov ecx, edi
call fcn.0040a3f0
cvttsd2si eax, xmm0
mov edx, str.NewConnectionsPerSecondPerDevice
mov ecx, edi
mov dword [0x4ab608], eax
call fcn.0040a3f0
cvttsd2si eax, xmm0
push 0x1ff
push 0
mov byte [ebp - 0x208], 0
mov dword [0x4ab60c], eax
lea eax, [ebp - 0x207]
push eax
call fcn.00452270
add esp, 0xc
lea eax, [ebp - 0x208]
push dword [0x4ab608]
push 0x482ee4
push eax
call fcn.004573bf
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.004580ba
add esp, 4
mov edi, dword [ebp - 0x27c]
push 9
mov edx, str.appStatus
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406e13
cmp dword [eax + 4], 3
jne 0x406e13
movsd xmm0, qword [eax + 8]
jmp 0x406e16
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4ab604], eax
cmp dword [edi + 4], 4
jne 0x407016
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406f74
push 0xa
mov edx, str.nodeConfig
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406f74
cmp dword [eax + 4], 4
jne 0x406f74
mov esi, dword [eax + 8]
test esi, esi
je 0x406f74
push 0x17
mov edx, str.ClientConnectCountLimit
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406e82
cmp dword [eax + 4], 3
jne 0x406e82
movsd xmm0, qword [eax + 8]
jmp 0x406e85
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x1e
mov edx, str.TerminalBandwidthDownlinkLimit
mov ecx, esi
mov dword [0x4ab610], eax
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406eb0
cmp dword [eax + 4], 3
jne 0x406eb0
movsd xmm0, qword [eax + 8]
jmp 0x406eb3
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x1c
mov edx, str.TerminalBandwidthUplinkLimit
mov ecx, esi
mov dword [0x4ab614], eax
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406ede
cmp dword [eax + 4], 3
jne 0x406ede
movsd xmm0, qword [eax + 8]
jmp 0x406ee1
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x29
mov edx, str.TerminalPacketForwardingRateDownlinkLimit
mov ecx, esi
mov dword [0x4ab618], eax
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406f0c
cmp dword [eax + 4], 3
jne 0x406f0c
movsd xmm0, qword [eax + 8]
jmp 0x406f0f
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x27
mov edx, str.EndpointPacketForwardingRateUplinkLimit
mov ecx, esi
mov dword [0x4ab61c], eax
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406f3a
cmp dword [eax + 4], 3
jne 0x406f3a
movsd xmm0, qword [eax + 8]
jmp 0x406f3d
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0xb
mov edx, str.IdleTimeout
mov ecx, esi
mov dword [0x4ab620], eax
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406f68
cmp dword [eax + 4], 3
jne 0x406f68
movsd xmm0, qword [eax + 8]
jmp 0x406f6b
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4ab624], eax
cmp dword [edi + 4], 4
jne 0x407016
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x40700b
push 0xf
mov edx, str.appClientConfig
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x40700b
cmp dword [eax + 4], 4
jne 0x40700b
mov esi, dword [eax + 8]
test esi, esi
je 0x40700b
push 0xb
mov edx, str.releaseType
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x406fcb
cmp dword [eax + 4], 3
jne 0x406fcb
movsd xmm0, qword [eax + 8]
jmp 0x406fce
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov edx, str.IsPassShowTip
mov ecx, esi
mov dword [0x4ab628], eax
call fcn.0040a3b0
cmp eax, 1
jne 0x40700b
mov edx, str.IsPassShowTip
mov ecx, esi
call fcn.0040a370
mov ecx, dword [0x4ab62c]
cmp byte [eax], 0x31
mov eax, 1
cmove ecx, eax
mov dword [0x4ab62c], ecx
cmp dword [edi + 4], 4
jne 0x407016
mov ecx, dword [edi + 8]
jmp 0x407018
xor ecx, ecx
mov edx, str.appInfo.sourceServers
call fcn.0040a430
test eax, eax
je 0x407254
cmp dword [eax + 4], 5
jne 0x407254
mov eax, dword [eax + 8]
mov dword [ebp - 0x270], eax
test eax, eax
je 0x407254
mov ecx, dword [eax + 8]
mov edx, 0xbb8
cmp ecx, edx
mov dword [ebp - 0x26c], 0
cmova ecx, edx
mov dword [ebp - 0x274], ecx
test ecx, ecx
je 0x407254
mov edx, dword [ebp - 0x274]
mov edi, 0x4afce6
mov dword [ebp - 0x268], edi
xor ecx, ecx
lea ecx, [ecx]
cmp ecx, dword [eax + 8]
jae 0x407233
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x40722d
cmp dword [eax + 4], 4
jne 0x40722d
mov esi, dword [eax + 8]
mov dword [ebp - 0x278], esi
test esi, esi
je 0x40722d
push 9
mov edx, str.virtualIp
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x407163
cmp dword [eax + 4], 2
jne 0x407163
add eax, 8
je 0x407163
mov eax, dword [eax + 4]
mov dword [ebp - 0x280], eax
test eax, eax
jle 0x407163
push 9
mov edx, str.virtualIp
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x407221
cmp dword [eax + 4], 2
jne 0x407221
add eax, 8
je 0x407221
mov edi, dword [eax]
test edi, edi
je 0x40721b
push str.127.
push edi
call fcn.00457990
add esp, 8
cmp eax, edi
jne 0x40721b
mov esi, dword [ebp - 0x268]
push 0x64
add esi, 0xffffff9c
push 0
push esi
call fcn.00452270
add esp, 0xc
push dword [ebp - 0x280]
push edi
push esi
call fcn.00451c20
mov esi, dword [ebp - 0x278]
add esp, 0xc
push 0xa
mov edx, str.sourcePort
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x4071d8
cmp dword [eax + 4], 2
jne 0x4071d8
lea edi, [eax + 8]
test edi, edi
je 0x4071d8
mov edi, dword [edi + 4]
test edi, edi
jle 0x4071d8
cmp edi, 0x1000
jg 0x40721b
mov edx, str.sourcePort
mov ecx, esi
call fcn.0040a370
mov dword [ebp - 0x278], eax
test eax, eax
je 0x40721b
push 0x1000
push 0
push dword [ebp - 0x268]
call fcn.00452270
add esp, 0xc
push edi
push dword [ebp - 0x278]
push dword [ebp - 0x268]
call fcn.00451c20
add esp, 0xc
push 0xa
mov edx, str.serverType
mov ecx, esi
call fcn.00408cb0
add esp, 4
test eax, eax
je 0x407208
cmp dword [eax + 4], 3
jne 0x407208
movsd xmm0, qword [eax + 8]
mov edi, dword [ebp - 0x268]
cvttsd2si eax, xmm0
mov word [edi - 0x66], ax
jmp 0x407221
mov edi, dword [ebp - 0x268]
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov word [edi - 0x66], ax
jmp 0x407221
mov edi, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x270]
inc ecx
add edi, 0x1066
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x268], edi
cmp ecx, edx
jb 0x407080
mov edi, dword [ebp - 0x27c]
cmp dword [edi + 4], 4
jne 0x40725f
mov ecx, dword [edi + 8]
jmp 0x407261
xor ecx, ecx
mov edx, str.appClientConfig.keywords
call fcn.0040a430
test eax, eax
je 0x4073e7
cmp dword [eax + 4], 5
jne 0x4073e7
mov eax, dword [eax + 8]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x4073e7
mov edx, dword [eax + 8]
mov ecx, 0x1e
cmp edx, ecx
cmova edx, ecx
xor ecx, ecx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x268], ecx
test edx, edx
je 0x4073e7
mov edi, 0x4ab630
mov dword [ebp - 0x26c], edi
lea esp, [esp]
cmp ecx, dword [eax + 8]
jae 0x4072e0
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4072e0
cmp dword [eax + 4], 2
jne 0x4072e0
lea esi, [eax + 8]
test esi, esi
je 0x4072e0
mov esi, dword [esi]
jmp 0x4072e2
xor esi, esi
test esi, esi
je 0x4073c0
push 0x257
lea eax, [ebp - 0x25f]
mov byte [ebp - 0x260], 0
push 0
push eax
call fcn.00452270
add esp, 0xc
mov edx, esi
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x407310
lea edi, [ebp - 0x260]
sub esi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407320
mov ecx, esi
mov dword [ebp - 0x278], esi
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x278]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
lea edx, [ecx + 1]
jmp 0x407350
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407350
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x407377
nop
cmp byte [ebp + eax - 0x260], 0x2f
jne 0x407372
mov byte [ebp + eax - 0x260], 0x5c
inc eax
cmp eax, ecx
jl 0x407360
cmp byte [ebp - 0x260], 0x5c
lea eax, [ebp - 0x260]
mov edi, dword [ebp - 0x26c]
lea esi, [ebp - 0x25f]
push 0x258
push 0
push edi
cmovne esi, eax
call fcn.00452270
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 0x4073a7
mov ecx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x274]
inc ecx
add edi, 0x258
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x26c], edi
cmp ecx, edx
jb 0x4072c0
mov edi, dword [ebp - 0x27c]
mov ecx, edi
call fcn.0040a4d0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00451570
mov esp, ebp
pop ebp
ret