Function at 0x40cf1a
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov eax, dword [ecx + 0x44]
push edi
mov esi, ecx
push eax
push str.IPMsgEng
cmp eax, 0x979
mov eax, 0x41d8e4
je 0x40cf42
mov eax, str._s_d
push eax
lea eax, [ebp - 0x254]
push eax
mov edi, str.HSTools
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x84]
push eax
push edi
call fcn.004097cc
lea eax, [esi + 0x48]
lea ecx, [ebp - 0x84]
push eax
push str.NoPopup
call fcn.00409911
cmp eax, 1
je 0x40cf95
push str.IPMsgEng
lea ecx, [ebp - 0x84]
push edi
call fcn.00409801
mov dword [esi + 0x2cc], 0x53
mov dword [esi + 0x2d0], 0x52
mov dword [esi + 0x2d4], 0x44
mov dword [esi + 0x360], 0xbb8
mov dword [esi + 0x364], 0x5dc
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x35c], eax
mov dword [esi + 0x2c4], eax
mov eax, 3
mov dword [esi + 0x2c8], eax
mov dword [esi + 0x368], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x40d00c
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40d00c
mov dword [esi + 0x36c], 0x64
jmp 0x40d016
mov dword [esi + 0x36c], 0x1e
xor ebx, ebx
mov edi, 1
mov dword [esi + 0x50], ebx
mov dword [esi + 0x7dc], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x278], ebx
mov dword [esi + 0x28c], ebx
mov dword [esi + 0x2b8], edi
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2c0], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x354], ebx
mov dword [esi + 0x984], ebx
mov dword [esi + 0x2ec], edi
mov byte [esi + 0x2f0], bl
mov byte [esi + 0x322], bl
mov dword [esi + 0x358], edi
mov dword [esi + 0x274], 8
mov dword [esi + 0x284], 0xc
mov dword [esi + 0x78c], ebx
mov dword [esi + 0x798], ebx
mov dword [esi + 0x79c], edi
mov dword [esi + 0x7a0], ebx
mov dword [esi + 0x7a4], edi
mov dword [esi + 0x2d8], ebx
mov dword [esi + 0x5c], 0x1f4
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x2e4], edi
mov dword [esi + 0x2e8], ebx
push 0x32
lea eax, [esi + 0x7a8]
mov dword [esi + 0x790], 0xa
mov dword [esi + 0x794], 0xed4e00
mov dword [esi + 0x38], 5
push 0x41e650
push eax
call fcn.0040b647
mov dword [esi + 0x7e0], 0x61
mov dword [esi + 0x7e4], 0x10
mov dword [esi + 0x7e8], 0x58
mov dword [esi + 0x7ec], 0x3a
add esp, 0xc
mov eax, dword [esi + 0x2e0]
mov dword [esi + 0x7f0], 0x6e
mov dword [esi + 0x7f4], 0x5a
mov dword [esi + 0x7f8], 0x15
or eax, edi
mov dword [esi + 0x2e0], eax
or al, 4
mov dword [esi + 0x2e0], eax
or al, 8
mov dword [esi + 0x2e0], eax
mov dword [esi + ebx*4 + 0x7fc], ebx
inc ebx
cmp ebx, 7
jl 0x40d166
xor ebx, ebx
mov dword [esi + 0x818], ebx
mov dword [esi + 0x81c], ebx
mov dword [esi + 0x820], ebx
mov dword [esi + 0x824], ebx
mov dword [esi + 0x828], ebx
mov dword [esi + 0x82c], ebx
mov dword [esi + 0x830], ebx
mov dword [esi + 0x834], ebx
mov dword [esi + 0x838], ebx
mov dword [esi + 0x83c], ebx
push 0x104
lea eax, [esi + 0x64]
push str.ipmsg.log
mov dword [esi + 0x840], ebx
push eax
mov dword [esi + 0x60], ebx
mov dword [esi + 0x968], ebx
call fcn.0040b647
add esp, 0xc
mov byte [esi + 0x168], bl
mov byte [esi + 0x37a], bl
mov byte [esi + 0x47e], bl
push 0x3c
lea eax, [esi + 0x844]
push ebx
mov byte [esi + 0x686], bl
push eax
mov byte [esi + 0x582], bl
call fcn.00417bc0
add esp, 0xc
lea eax, [esi + 0x880]
push 0x3c
push ebx
push eax
call fcn.00417bc0
add esp, 0xc
lea eax, [esi + 0x8bc]
push 0x3c
push ebx
push eax
call fcn.00417bc0
add esp, 0xc
lea eax, [esi + 0x8f8]
push 0x3c
push ebx
push eax
call fcn.00417bc0
add esp, 0xc
lea eax, [esi + 0x54]
lea ecx, [ebp - 0x84]
push eax
push str.NoBeep
call fcn.00409911
lea eax, [esi + 0x35c]
lea ecx, [ebp - 0x84]
push eax
push str.ListGet
call fcn.00409911
lea eax, [esi + 0x360]
push eax
push str.ListGetMSec
lea ecx, [ebp - 0x84]
call fcn.00409911
lea eax, [esi + 0x364]
lea ecx, [ebp - 0x84]
push eax
push str.RetryMSec2
call fcn.00409911
lea eax, [esi + 0x368]
lea ecx, [ebp - 0x84]
push eax
push str.RetryMax
call fcn.00409911
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x40d2c8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, str.RecvMaxNT
cmp eax, 0x80000000
jb 0x40d2cd
mov ecx, str.RecvMax95
lea eax, [esi + 0x36c]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00409911
lea eax, [esi + 0x50]
lea ecx, [ebp - 0x84]
push eax
push str.NoErase
call fcn.00409911
lea eax, [esi + 0x7dc]
lea ecx, [ebp - 0x84]
push eax
push str.Debug
call fcn.00409911
lea eax, [esi + 0x48]
lea ecx, [ebp - 0x84]
push eax
push str.NoPopup
call fcn.00409911
lea eax, [esi + 0x4c]
lea ecx, [ebp - 0x84]
push eax
push str.OpenCheck
call fcn.00409911
lea eax, [esi + 0x26c]
lea ecx, [ebp - 0x84]
push eax
push str.AbsenceSave
call fcn.00409911
cmp dword [esi + 0x26c], 1
jne 0x40d36a
lea eax, [esi + 0x270]
lea ecx, [ebp - 0x84]
push eax
push str.AbsenceCheck
call fcn.00409911
lea eax, [esi + 0x274]
lea ecx, [ebp - 0x84]
push eax
push str.AbsenceMax
call fcn.00409911
lea eax, [esi + 0x2e4]
lea ecx, [ebp - 0x84]
push eax
push str.AllowSendList
call fcn.00409911
lea eax, [esi + 0x2e8]
lea ecx, [ebp - 0x84]
push eax
mov edi, 0x104
push str.FileTransOpt
call fcn.00409911
mov eax, dword [esi + 0x274]
imul eax, edi
push eax
call fcn.00417e80
add esp, 4
mov dword [esi + 0x27c], eax
mov eax, dword [esi + 0x274]
imul eax, edi
push eax
push 0
push dword [esi + 0x27c]
call fcn.00417bc0
add esp, 0xc
lea ecx, [ebp - 0x84]
push edi
push dword [esi + 0x27c]
push str.AbsenceStr
call fcn.004099ef
mov eax, dword [esi + 0x274]
imul eax, eax, 0x32
push eax
call fcn.00417e80
add esp, 4
mov dword [esi + 0x280], eax
mov eax, dword [esi + 0x274]
imul eax, eax, 0x32
push eax
push 0
push dword [esi + 0x280]
call fcn.00417bc0
add esp, 0xc
lea ecx, [ebp - 0x84]
push 1
push str.AbsenceStr
call fcn.00409878
cmp eax, 1
jne 0x40d55d
xor ebx, ebx
cmp dword [esi + 0x274], ebx
jle 0x40d552
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8c], ebx
push ebx
lea eax, [ebp - 0x358]
push str.AbsenceStr
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esi + 0x27c]
add eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x358]
push edi
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.004099ef
cmp eax, 1
je 0x40d4d1
cmp dword [ebp - 0x8c], 0x820
mov eax, 0
jge 0x40d4b4
mov eax, ebx
push edi
push dword [eax*4 + 0x41e188]
mov eax, dword [esi + 0x27c]
add eax, dword [ebp - 0x8c]
push eax
call fcn.0040b647
add esp, 0xc
push ebx
lea eax, [ebp - 0x358]
push str.AbsenceHead
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esi + 0x280]
add eax, dword [ebp - 4]
lea ecx, [ebp - 0x358]
push 0x32
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.004099ef
cmp eax, 1
je 0x40d53b
cmp dword [ebp - 0x8c], 0x820
mov eax, 0
jge 0x40d522
mov eax, ebx
push dword [eax*4 + 0x41e1a8]
mov eax, dword [esi + 0x280]
add eax, dword [ebp - 4]
push eax
call fcn.00417c20
add esp, 8
inc ebx
add dword [ebp - 0x8c], edi
add dword [ebp - 4], 0x32
cmp dword [esi + 0x274], ebx
jg 0x40d461
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 1
lea ecx, [ebp - 0x84]
push str.FindStr
call fcn.00409878
cmp eax, 1
jne 0x40d625
lea eax, [esi + 0x284]
lea ecx, [ebp - 0x84]
push eax
push str.FindMax2
call fcn.00409911
lea eax, [esi + 0x28c]
lea ecx, [ebp - 0x84]
push eax
push str.FindAll
call fcn.00409911
mov eax, dword [esi + 0x284]
xor edi, edi
imul eax, eax, 0x32
push eax
call fcn.00417e80
add esp, 4
mov dword [esi + 0x288], eax
cmp dword [esi + 0x284], edi
jle 0x40d618
xor ebx, ebx
push edi
lea eax, [ebp - 0x18c]
push 0x41d2e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esi + 0x288]
add eax, ebx
lea ecx, [ebp - 0x18c]
push 0x32
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.004099ef
cmp eax, 1
je 0x40d60c
mov eax, dword [esi + 0x288]
mov byte [eax + ebx], 0
add ebx, 0x32
inc edi
cmp dword [esi + 0x284], edi
jg 0x40d5ca
lea ecx, [ebp - 0x84]
call fcn.004098f2
jmp 0x40d655
lea edi, [esi + 0x288]
mov eax, dword [esi + 0x284]
imul eax, eax, 0x32
push eax
call fcn.00417e80
add esp, 4
mov dword [edi], eax
mov eax, dword [esi + 0x284]
imul eax, eax, 0x32
push eax
push 0
push dword [edi]
call fcn.00417bc0
add esp, 0xc
lea eax, [esi + 0x934]
push 0x32
push eax
lea ecx, [ebp - 0x84]
push str.PasswordStr
mov byte [eax], 0
call fcn.004099ef
lea eax, [esi + 0x968]
lea ecx, [ebp - 0x84]
push eax
push str.PasswdLogCheck
call fcn.00409911
lea eax, [esi + 0x5c]
lea ecx, [ebp - 0x84]
push eax
push str.DelayTime
call fcn.00409911
lea eax, [esi + 0x2b8]
lea ecx, [ebp - 0x84]
push eax
push str.QuoteCheck
call fcn.00409911
lea eax, [esi + 0x2bc]
lea ecx, [ebp - 0x84]
push eax
push str.SecretCheck
call fcn.00409911
lea eax, [esi + 0x2c0]
lea ecx, [ebp - 0x84]
push eax
push str.IPAddrCheck
call fcn.00409911
lea eax, [esi + 0x58]
lea ecx, [ebp - 0x84]
push eax
push str.OneClickPopup
call fcn.00409911
lea eax, [esi + 0x354]
lea ecx, [ebp - 0x84]
push eax
push str.AbnormalButton
call fcn.00409911
lea eax, [esi + 0x984]
lea ecx, [ebp - 0x84]
push eax
push str.DialUpCheck
call fcn.00409911
lea eax, [esi + 0x2ec]
lea ecx, [ebp - 0x84]
push eax
push str.NickNameCheck
call fcn.00409911
lea eax, [esi + 0x358]
lea ecx, [ebp - 0x84]
push eax
push str.AbsenceNonPopup
call fcn.00409911
push 0x32
lea eax, [esi + 0x2f0]
push eax
push str.NickNameStr
lea ecx, [ebp - 0x84]
call fcn.004099ef
push 0x32
lea eax, [esi + 0x322]
push eax
lea ecx, [ebp - 0x84]
push str.GroupNameStr
call fcn.004099ef
push 0xa
lea ecx, [esi + 0x370]
push ecx
push str.Lang
lea ecx, [ebp - 0x84]
call fcn.004099ef
lea eax, [esi + 0x78c]
lea ecx, [ebp - 0x84]
push eax
push str.Sort
call fcn.0040994f
lea eax, [esi + 0x794]
lea ecx, [ebp - 0x84]
push eax
push str.KeepHostTime
call fcn.00409911
lea eax, [esi + 0x798]
lea ecx, [ebp - 0x84]
push eax
push str.MsgMinimize
call fcn.00409911
lea eax, [esi + 0x79c]
lea ecx, [ebp - 0x84]
push eax
push str.DefaultUrl
call fcn.00409911
lea eax, [esi + 0x7a0]
lea ecx, [ebp - 0x84]
push eax
push str.ShellExec
call fcn.00409911
lea eax, [esi + 0x7a4]
lea ecx, [ebp - 0x84]
push eax
push str.ExtendEntry
call fcn.00409911
lea eax, [esi + 0x2d8]
lea ecx, [ebp - 0x84]
push eax
push str.ControlIME
call fcn.00409911
lea eax, [esi + 0x2dc]
lea ecx, [ebp - 0x84]
push eax
push str.GlidLine
call fcn.00409911
lea eax, [esi + 0x2e0]
lea ecx, [ebp - 0x84]
push eax
push str.ColumnItems
call fcn.00409911
push 0x32
lea eax, [esi + 0x7a8]
push eax
lea ecx, [ebp - 0x84]
push 0x41e42c
call fcn.004099ef
push 1
lea ecx, [ebp - 0x84]
push str.HotKey
call fcn.00409878
cmp eax, 1
jne 0x40d919
lea eax, [esi + 0x2c4]
lea ecx, [ebp - 0x84]
push eax
push str.HotKeyCheck
call fcn.00409911
lea eax, [esi + 0x2c8]
lea ecx, [ebp - 0x84]
push eax
push str.HotKeyModify
call fcn.00409911
lea eax, [esi + 0x2cc]
lea ecx, [ebp - 0x84]
push eax
push str.HotKeySend
call fcn.00409911
lea eax, [esi + 0x2d0]
lea ecx, [ebp - 0x84]
push eax
push str.HotKeyRecv
call fcn.00409911
lea eax, [esi + 0x2d4]
lea ecx, [ebp - 0x84]
push eax
push str.HotKeyMisc
call fcn.00409911
lea ecx, [ebp - 0x84]
call fcn.004098f2
lea eax, [esi + 0x60]
lea ecx, [ebp - 0x84]
push eax
push str.LogCheck
call fcn.00409911
push 0x104
lea eax, [esi + 0x64]
push eax
lea ecx, [ebp - 0x84]
push 0x41e3d0
call fcn.004099ef
cmp dword [esi + 0x60], 0
je 0x40d958
lea eax, [esi + 0x64]
push eax
call fcn.0040547a
add esp, 4
mov edi, 0x104
lea eax, [esi + 0x168]
push edi
lea ecx, [ebp - 0x84]
push eax
push str.SoundFile
call fcn.004099ef
push edi
lea eax, [esi + 0x37a]
push eax
lea ecx, [ebp - 0x84]
push 0x41e3bc
call fcn.004099ef
push edi
lea eax, [esi + 0x47e]
push eax
lea ecx, [ebp - 0x84]
push 0x41e3b4
call fcn.004099ef
push edi
lea eax, [esi + 0x686]
push eax
lea ecx, [ebp - 0x84]
push str.lastOpen
call fcn.004099ef
push edi
lea eax, [esi + 0x582]
push eax
lea ecx, [ebp - 0x84]
push str.lastSave
call fcn.004099ef
push 1
lea ecx, [ebp - 0x84]
push str.WindowSize
call fcn.00409878
cmp eax, 1
jne 0x40dc44
lea eax, [esi + 0x7e0]
lea ecx, [ebp - 0x84]
push eax
push str.SendNickName
call fcn.00409911
lea eax, [esi + 0x7f4]
lea ecx, [ebp - 0x84]
push eax
push str.SendUserName
call fcn.00409911
lea eax, [esi + 0x7e4]
lea ecx, [ebp - 0x84]
push eax
push str.SendAbsence
call fcn.00409911
lea eax, [esi + 0x7f8]
lea ecx, [ebp - 0x84]
push eax
push str.SendPriority
call fcn.00409911
lea eax, [esi + 0x7e8]
lea ecx, [ebp - 0x84]
push eax
push str.SendGroupName
call fcn.00409911
lea eax, [esi + 0x7ec]
lea ecx, [ebp - 0x84]
push eax
push str.SendHostName
call fcn.00409911
lea eax, [esi + 0x7f0]
lea ecx, [ebp - 0x84]
push eax
push str.SendIPAddr
call fcn.00409911
push 1
lea ecx, [ebp - 0x84]
push str.SendOrder
call fcn.00409878
cmp eax, 1
jne 0x40daec
xor edi, edi
push edi
lea eax, [ebp - 0x254]
push 0x41d2e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esi + edi*4]
add eax, 0x7fc
lea ecx, [ebp - 0x254]
push eax
inc edi
push ecx
lea ecx, [ebp - 0x84]
call fcn.00409911
cmp edi, 7
jl 0x40daaa
lea ecx, [ebp - 0x84]
call fcn.004098f2
xor ebx, ebx
mov ecx, dword [esi + ebx*4 + 0x7fc]
cmp ecx, 7
jge 0x40db28
test ecx, ecx
jl 0x40db28
lea edi, [ebx + 1]
mov edx, edi
cmp edi, 7
jge 0x40db1c
lea eax, [esi + edi*4 + 0x7fc]
cmp dword [eax], ecx
je 0x40db1c
add eax, 4
inc edx
cmp edx, 7
jl 0x40db0f
cmp edx, 7
jne 0x40db28
mov ebx, edi
cmp edi, 7
jl 0x40daee
cmp ebx, 7
je 0x40db3c
xor eax, eax
mov dword [esi + eax*4 + 0x7fc], eax
inc eax
cmp eax, 7
jl 0x40db2f
lea eax, [esi + 0x818]
lea ecx, [ebp - 0x84]
push eax
push str.SendXdiff
call fcn.00409911
lea eax, [esi + 0x81c]
lea ecx, [ebp - 0x84]
push eax
push str.SendYdiff
call fcn.00409911
lea eax, [esi + 0x820]
lea ecx, [ebp - 0x84]
push eax
push str.SendMidYdiff
call fcn.00409911
lea eax, [esi + 0x824]
lea ecx, [ebp - 0x84]
push eax
push str.SendSavePos
call fcn.00409911
lea eax, [esi + 0x828]
lea ecx, [ebp - 0x84]
push eax
push str.SendXpos
call fcn.00409911
lea eax, [esi + 0x82c]
lea ecx, [ebp - 0x84]
push eax
push str.SendYpos
call fcn.00409911
lea eax, [esi + 0x830]
lea ecx, [ebp - 0x84]
push eax
push str.RecvXdiff
call fcn.00409911
lea eax, [esi + 0x834]
lea ecx, [ebp - 0x84]
push eax
push str.RecvYdiff
call fcn.00409911
lea eax, [esi + 0x838]
lea ecx, [ebp - 0x84]
push eax
push str.RecvSavePos
call fcn.00409911
lea eax, [esi + 0x83c]
lea ecx, [ebp - 0x84]
push eax
push str.RecvXpos
call fcn.00409911
lea eax, [esi + 0x840]
lea ecx, [ebp - 0x84]
push eax
push str.RecvYpos
call fcn.00409911
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 1
lea ecx, [ebp - 0x84]
push str.Fonts
call fcn.00409878
cmp eax, 1
jne 0x40dcce
lea eax, [esi + 0x844]
lea ecx, [ebp - 0x84]
push eax
push str.SendEdit
push ecx
mov ecx, esi
call fcn.0040e1d4
lea eax, [esi + 0x880]
lea ecx, [ebp - 0x84]
push eax
push str.SendListView
push ecx
mov ecx, esi
call fcn.0040e1d4
lea eax, [esi + 0x8bc]
lea ecx, [ebp - 0x84]
push eax
push str.RecvHead
push ecx
mov ecx, esi
call fcn.0040e1d4
lea eax, [esi + 0x8f8]
lea ecx, [ebp - 0x84]
push eax
push str.RecvEdit
push ecx
mov ecx, esi
call fcn.0040e1d4
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 1
lea ecx, [ebp - 0x84]
push str.BroadCast
call fcn.00409878
cmp eax, 1
jne 0x40dda6
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x254]
push eax
inc dword [ebp - 4]
push 0x41d2e8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x420]
lea edx, [ebp - 0x254]
push 0xc8
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.004099ef
cmp eax, 1
jne 0x40dd9b
lea eax, [ebp - 0x420]
lea edi, [esi + 0x96c]
push eax
call sub.WSOCK32.dll_inet_addr
mov ebx, eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
test eax, eax
je 0x40dd5f
cmp dword [eax + 8], ebx
je 0x40dd5f
push eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
test eax, eax
jne 0x40dd4e
cmp ebx, 0xffffffff
je 0x40dcf0
test eax, eax
jne 0x40dcf0
push 0x10
call fcn.00417e80
add esp, 4
mov dword [ebp - 0x8c], eax
mov dword [eax + 8], ebx
push dword [esi + 0x44]
call sub.WSOCK32.dll_htons
movzx edx, ax
mov ecx, dword [ebp - 0x8c]
push ecx
mov dword [ecx + 0xc], edx
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
jmp 0x40dcf0
lea ecx, [ebp - 0x84]
call fcn.004098f2
cmp dword [str.HTTP], 0
je 0x40ddfa
mov edi, 0x41e170
mov eax, dword [esi + 0x978]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
push 0x140
call fcn.00417e80
lea ecx, [eax + 8]
add esp, 4
mov ebx, eax
push 0x32
push dword [edi]
push ecx
add edi, 4
call fcn.0040b647
add esp, 0xc
lea ecx, [esi + 0x978]
mov byte [ebx + 0x3a], 0
push ebx
call dword [ebp - 0x8c]
cmp dword [edi], 0
jne 0x40ddc2
push 1
lea ecx, [ebp - 0x84]
push str.ClickableUrl
call fcn.00409878
cmp eax, 1
jne 0x40defd
mov dword [ebp - 0x8c], 0
mov edi, dword [ebp - 0x8c]
push 0
push 0xc8
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x84]
push edi
call fcn.00409adf
cmp eax, 1
je 0x40de65
push 0xc8
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x84]
push edi
call fcn.00409ab5
cmp eax, 1
jne 0x40def2
lea ebx, [esi + 0x978]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x40dea1
lea eax, [ebp - 0x254]
lea ecx, [edi + 8]
push eax
push ecx
call fcn.0041a180
add esp, 8
test eax, eax
je 0x40de9d
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 8]
mov edi, eax
test edi, edi
jne 0x40de78
test edi, edi
jne 0x40deb7
push 0x140
call fcn.00417e80
add esp, 4
mov edi, eax
mov ecx, ebx
mov eax, dword [ebx]
push edi
call dword [eax]
push 0x32
lea eax, [ebp - 0x254]
lea ecx, [edi + 8]
push eax
push ecx
add edi, 0x3a
call fcn.0040b647
add esp, 0xc
lea ecx, [ebp - 0x254]
push 0x104
push edi
push ecx
lea ecx, [ebp - 0x84]
call fcn.004099ef
inc dword [ebp - 0x8c]
jmp 0x40de1f
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 1
lea ecx, [ebp - 0x84]
push str.Priority
call fcn.00409878
cmp eax, 1
jne 0x40df47
lea eax, [esi + 0x38]
lea ecx, [ebp - 0x84]
push eax
push str.PriorityMax
call fcn.00409911
lea eax, [esi + 0x3c]
lea ecx, [ebp - 0x84]
push eax
push str.PriorityReject
call fcn.00409911
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 1
lea ecx, [ebp - 0x84]
push str.HostInfo
call fcn.00409878
cmp eax, 1
jne 0x40e143
call fcn.0040c44c
mov ecx, eax
mov eax, dword [esi + 0x794]
cdq
sub eax, edx
xor edi, edi
sar eax, 1
mov dword [ebp - 0x8c], edi
sub ecx, eax
mov dword [esi], 1
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], edi
mov dword [esi + 0x24], 1
mov ebx, dword [ebp - 4]
push edi
push 0xc8
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x84]
push ebx
call fcn.00409adf
cmp eax, 1
je 0x40dfd6
push 0xc8
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x84]
push ebx
call fcn.00409ab5
cmp eax, 1
jne 0x40e123
push edi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x84]
call fcn.00409878
cmp eax, 1
jne 0x40e123
lea eax, [ebp - 0x258]
lea ecx, [ebp - 0x84]
push eax
push str.Priority
call fcn.00409911
cmp eax, 1
jne 0x40e106
cmp dword [ebp - 0x258], 0xa
je 0x40e106
push 0xf4
call fcn.00417e80
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40e046
mov dword [ebx + 0xe0], edi
mov dword [ebx + 0xec], edi
mov dword [ebx + 0xdc], edi
jmp 0x40e048
xor ebx, ebx
mov eax, dword [ebp - 0x258]
push 0x32
push ebx
lea ecx, [ebp - 0x84]
push str.UserName
mov dword [ebx + 0xd8], eax
call fcn.004099ef
push 0x32
lea ecx, [ebx + 0x32]
push ecx
push str.HostName
lea ecx, [ebp - 0x84]
call fcn.004099ef
lea eax, [ebx + 0x64]
lea ecx, [ebp - 0x84]
push eax
push str.IPAddr
call fcn.0040994f
lea eax, [ebx + 0x68]
lea ecx, [ebp - 0x84]
push eax
push str.PortNo
call fcn.00409911
push 0x32
lea eax, [ebx + 0x6c]
push eax
lea ecx, [ebp - 0x84]
push str.NickName
call fcn.004099ef
push 0x32
lea eax, [ebx + 0x9e]
push eax
lea ecx, [ebp - 0x84]
push str.GroupName
call fcn.004099ef
lea eax, [ebx + 0xd4]
lea ecx, [ebp - 0x84]
push eax
push str.UpdateTime
call fcn.0040994f
cmp eax, 1
je 0x40e0fc
mov eax, dword [ebp - 0x88]
mov dword [ebx + 0xd4], eax
push ebx
mov ecx, esi
call fcn.0040ba9c
jmp 0x40e110
mov dword [ebp - 0x8c], 1
lea ecx, [ebp - 0x84]
call fcn.004098f2
inc dword [ebp - 4]
jmp 0x40df94
lea ecx, [ebp - 0x84]
call fcn.004098f2
cmp dword [ebp - 0x8c], 0
je 0x40e143
push 0x3000
mov ecx, esi
call fcn.0040e341
push 0
lea ecx, [ebp - 0x84]
push str.Debug
call fcn.00409878
cmp eax, 1
jne 0x40e172
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 0
lea ecx, [ebp - 0x84]
call fcn.00409b0c
push 0xc8
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x84]
push 0
call fcn.004099ef
cmp eax, 1
jne 0x40e1a9
call fcn.00417932
push eax
lea ecx, [ebp - 0x254]
push ecx
call fcn.00417e90
add esp, 8
test eax, eax
je 0x40e1bd
lea ecx, [ebp - 0x84]
call fcn.004098f2
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040e341
lea ecx, [ebp - 0x84]
call fcn.004097e9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret