Function at 0x406c50
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 0x406da1
cmp byte [ecx], 0xef
jne 0x406c8d
cmp byte [ecx + 1], 0xbb
jne 0x406c8d
cmp byte [ecx + 2], 0xbf
jne 0x406c8d
lea eax, [ecx + 3]
mov dword [ebp - 0x264], eax
xor edx, edx
lea ecx, [ebp - 0x264]
call fcn.00409230
mov edi, eax
mov dword [ebp - 0x27c], edi
test edi, edi
je 0x406da1
cmp dword [edi + 4], 4
jne 0x406d18
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406ceb
push 7
mov edx, str.message
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406ceb
cmp dword [eax + 4], 2
jne 0x406ceb
lea ecx, [eax + 8]
test ecx, ecx
je 0x406ceb
mov ecx, dword [ecx]
test ecx, ecx
je 0x406ceb
push ecx
mov edx, 0x6b0618
call fcn.0040fe50
add esp, 4
cmp dword [edi + 4], 4
jne 0x406d18
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406d18
push 6
mov edx, str.status
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406d18
cmp dword [eax + 4], 3
jne 0x406d18
movsd xmm0, qword [eax + 8]
jmp 0x406d1b
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4ab860], eax
cmp eax, 0xc8
je 0x406db3
push 0x1ff
lea eax, [ebp - 0x207]
mov byte [ebp - 0x208], 0
push 0
push eax
call fcn.004523e0
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x6b0618
push 0x482e7c
push eax
call fcn.0045752f
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.00458229
add esp, 4
push 0x10
push 0x482770
push 0x6b0618
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, edi
call fcn.0040a640
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 4], 4
jne 0x4070c6
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x406ecf
push 7
mov edx, str.appInfo
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406ecf
cmp dword [eax + 4], 4
jne 0x406ecf
mov esi, dword [eax + 8]
test esi, esi
je 0x406ecf
push 9
mov edx, str.appConfig
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406ea1
cmp dword [eax + 4], 4
jne 0x406ea1
mov edi, dword [eax + 8]
test edi, edi
je 0x406e9b
mov edx, str.MaximumConnectionsPerDevice
mov ecx, edi
call fcn.0040a560
cvttsd2si eax, xmm0
mov edx, str.NewConnectionsPerSecondPerDevice
mov ecx, edi
mov dword [0x4ab868], eax
call fcn.0040a560
cvttsd2si eax, xmm0
push 0x1ff
push 0
mov byte [ebp - 0x208], 0
mov dword [0x4ab86c], eax
lea eax, [ebp - 0x207]
push eax
call fcn.004523e0
add esp, 0xc
lea eax, [ebp - 0x208]
push dword [0x4ab868]
push 0x482f04
push eax
call fcn.0045752f
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.00458229
add esp, 4
mov edi, dword [ebp - 0x27c]
push 9
mov edx, str.appStatus
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406ec3
cmp dword [eax + 4], 3
jne 0x406ec3
movsd xmm0, qword [eax + 8]
jmp 0x406ec6
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4ab864], eax
cmp dword [edi + 4], 4
jne 0x4070c6
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x407024
push 0xa
mov edx, str.nodeConfig
call fcn.00408e20
add esp, 4
test eax, eax
je 0x407024
cmp dword [eax + 4], 4
jne 0x407024
mov esi, dword [eax + 8]
test esi, esi
je 0x407024
push 0x17
mov edx, str.ClientConnectCountLimit
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406f32
cmp dword [eax + 4], 3
jne 0x406f32
movsd xmm0, qword [eax + 8]
jmp 0x406f35
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x1e
mov edx, str.TerminalBandwidthDownlinkLimit
mov ecx, esi
mov dword [0x4ab870], eax
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406f60
cmp dword [eax + 4], 3
jne 0x406f60
movsd xmm0, qword [eax + 8]
jmp 0x406f63
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x1c
mov edx, str.TerminalBandwidthUplinkLimit
mov ecx, esi
mov dword [0x4ab874], eax
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406f8e
cmp dword [eax + 4], 3
jne 0x406f8e
movsd xmm0, qword [eax + 8]
jmp 0x406f91
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x29
mov edx, str.TerminalPacketForwardingRateDownlinkLimit
mov ecx, esi
mov dword [0x4ab878], eax
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406fbc
cmp dword [eax + 4], 3
jne 0x406fbc
movsd xmm0, qword [eax + 8]
jmp 0x406fbf
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0x27
mov edx, str.EndpointPacketForwardingRateUplinkLimit
mov ecx, esi
mov dword [0x4ab87c], eax
call fcn.00408e20
add esp, 4
test eax, eax
je 0x406fea
cmp dword [eax + 4], 3
jne 0x406fea
movsd xmm0, qword [eax + 8]
jmp 0x406fed
xorps xmm0, xmm0
cvttsd2si eax, xmm0
push 0xb
mov edx, str.IdleTimeout
mov ecx, esi
mov dword [0x4ab880], eax
call fcn.00408e20
add esp, 4
test eax, eax
je 0x407018
cmp dword [eax + 4], 3
jne 0x407018
movsd xmm0, qword [eax + 8]
jmp 0x40701b
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov dword [0x4ab884], eax
cmp dword [edi + 4], 4
jne 0x4070c6
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4070bb
push 0xf
mov edx, str.appClientConfig
call fcn.00408e20
add esp, 4
test eax, eax
je 0x4070bb
cmp dword [eax + 4], 4
jne 0x4070bb
mov esi, dword [eax + 8]
test esi, esi
je 0x4070bb
push 0xb
mov edx, str.releaseType
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x40707b
cmp dword [eax + 4], 3
jne 0x40707b
movsd xmm0, qword [eax + 8]
jmp 0x40707e
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov edx, str.IsPassShowTip
mov ecx, esi
mov dword [0x4ab888], eax
call fcn.0040a520
cmp eax, 1
jne 0x4070bb
mov edx, str.IsPassShowTip
mov ecx, esi
call fcn.0040a4e0
mov ecx, dword [0x4ab88c]
cmp byte [eax], 0x31
mov eax, 1
cmove ecx, eax
mov dword [0x4ab88c], ecx
cmp dword [edi + 4], 4
jne 0x4070c6
mov ecx, dword [edi + 8]
jmp 0x4070c8
xor ecx, ecx
mov edx, str.appInfo.sourceServers
call fcn.0040a5a0
test eax, eax
je 0x407304
cmp dword [eax + 4], 5
jne 0x407304
mov eax, dword [eax + 8]
mov dword [ebp - 0x270], eax
test eax, eax
je 0x407304
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 0x407304
mov edx, dword [ebp - 0x274]
mov edi, 0x4aff46
mov dword [ebp - 0x268], edi
xor ecx, ecx
lea ecx, [ecx]
cmp ecx, dword [eax + 8]
jae 0x4072e3
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4072dd
cmp dword [eax + 4], 4
jne 0x4072dd
mov esi, dword [eax + 8]
mov dword [ebp - 0x278], esi
test esi, esi
je 0x4072dd
push 9
mov edx, str.virtualIp
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x407213
cmp dword [eax + 4], 2
jne 0x407213
add eax, 8
je 0x407213
mov eax, dword [eax + 4]
mov dword [ebp - 0x280], eax
test eax, eax
jle 0x407213
push 9
mov edx, str.virtualIp
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x4072d1
cmp dword [eax + 4], 2
jne 0x4072d1
add eax, 8
je 0x4072d1
mov edi, dword [eax]
test edi, edi
je 0x4072cb
push str.127.
push edi
call fcn.00457b00
add esp, 8
cmp eax, edi
jne 0x4072cb
mov esi, dword [ebp - 0x268]
push 0x64
add esi, 0xffffff9c
push 0
push esi
call fcn.004523e0
add esp, 0xc
push dword [ebp - 0x280]
push edi
push esi
call fcn.00451d90
mov esi, dword [ebp - 0x278]
add esp, 0xc
push 0xa
mov edx, str.sourcePort
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x407288
cmp dword [eax + 4], 2
jne 0x407288
lea edi, [eax + 8]
test edi, edi
je 0x407288
mov edi, dword [edi + 4]
test edi, edi
jle 0x407288
cmp edi, 0x1000
jg 0x4072cb
mov edx, str.sourcePort
mov ecx, esi
call fcn.0040a4e0
mov dword [ebp - 0x278], eax
test eax, eax
je 0x4072cb
push 0x1000
push 0
push dword [ebp - 0x268]
call fcn.004523e0
add esp, 0xc
push edi
push dword [ebp - 0x278]
push dword [ebp - 0x268]
call fcn.00451d90
add esp, 0xc
push 0xa
mov edx, str.serverType
mov ecx, esi
call fcn.00408e20
add esp, 4
test eax, eax
je 0x4072b8
cmp dword [eax + 4], 3
jne 0x4072b8
movsd xmm0, qword [eax + 8]
mov edi, dword [ebp - 0x268]
cvttsd2si eax, xmm0
mov word [edi - 0x66], ax
jmp 0x4072d1
mov edi, dword [ebp - 0x268]
xorps xmm0, xmm0
cvttsd2si eax, xmm0
mov word [edi - 0x66], ax
jmp 0x4072d1
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 0x407130
mov edi, dword [ebp - 0x27c]
cmp dword [edi + 4], 4
jne 0x40730f
mov ecx, dword [edi + 8]
jmp 0x407311
xor ecx, ecx
mov edx, str.appClientConfig.keywords
call fcn.0040a5a0
test eax, eax
je 0x407497
cmp dword [eax + 4], 5
jne 0x407497
mov eax, dword [eax + 8]
mov dword [ebp - 0x274], eax
test eax, eax
je 0x407497
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 0x407497
mov edi, 0x4ab890
mov dword [ebp - 0x26c], edi
lea esp, [esp]
cmp ecx, dword [eax + 8]
jae 0x407390
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x407390
cmp dword [eax + 4], 2
jne 0x407390
lea esi, [eax + 8]
test esi, esi
je 0x407390
mov esi, dword [esi]
jmp 0x407392
xor esi, esi
test esi, esi
je 0x407470
push 0x257
lea eax, [ebp - 0x25f]
mov byte [ebp - 0x260], 0
push 0
push eax
call fcn.004523e0
add esp, 0xc
mov edx, esi
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x4073c0
lea edi, [ebp - 0x260]
sub esi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4073d0
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 0x407400
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407400
sub ecx, edx
xor eax, eax
test ecx, ecx
jle 0x407427
nop
cmp byte [ebp + eax - 0x260], 0x2f
jne 0x407422
mov byte [ebp + eax - 0x260], 0x5c
inc eax
cmp eax, ecx
jl 0x407410
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.004523e0
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 0x407457
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 0x407370
mov edi, dword [ebp - 0x27c]
mov ecx, edi
call fcn.0040a640
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004516e1
mov esp, ebp
pop ebp
ret