Function at 0x40e6db
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
lea edx, [ebp - 0x150]
push esi
push edi
push dword [ecx + 0x48]
push dword [ecx + 0x44]
push edx
mov esi, ecx
call fcn.0040f55c
lea ecx, [ebp - 0x150]
push ecx
push str.HSTools
lea ecx, [ebp - 0x84]
call fcn.004096fc
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x154], eax
je 0x40e8be
call fcn.0041837c
push eax
lea ecx, [ebp - 0x84]
push 0
call fcn.0040997a
push dword [esi + 0x58]
push str.NoBeep
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x390]
push str.ListGet
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x394]
push str.ListGetMSec
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x398]
push str.RetryMSec2
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x39c]
push str.RetryMax
lea ecx, [ebp - 0x84]
call fcn.0040986f
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x40e7be
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov eax, str.RecvMaxNT
jb 0x40e7c3
mov eax, str.RecvMax95
push dword [esi + 0x3a0]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x54]
push str.NoErase
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x810]
push str.Debug
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x4c]
push str.NoPopup
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x50]
push str.OpenCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x304]
push str.AllowSendList
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x308]
push str.FileTransOpt
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x30c]
push str.ResolveOpt
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x310]
push str.EncryptNum
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x314]
push str.ViewMax
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x318]
push str.TransMax
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x31c]
push str.TcpbufMax
lea ecx, [ebp - 0x84]
call fcn.0040986f
test byte [ebp + 8], 2
je 0x40e9cc
push dword [esi + 0x270]
push str.AbsenceSave
lea ecx, [ebp - 0x84]
lea edi, [esi + 0x278]
call fcn.0040986f
push dword [esi + 0x274]
push str.AbsenceCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [edi]
push str.AbsenceMax
lea ecx, [ebp - 0x84]
call fcn.0040986f
push 1
lea ecx, [ebp - 0x84]
push str.AbsenceStr
call fcn.004097a8
test eax, eax
je 0x40e9c1
xor ebx, ebx
cmp dword [edi], ebx
jle 0x40e9c1
mov dword [ebp - 0x88], ebx
mov dword [ebp - 4], 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 + 0x280]
add eax, dword [ebp - 4]
lea ecx, [ebp - 0x358]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040997a
push ebx
lea ecx, [ebp - 0x358]
push str.AbsenceHead
inc ebx
push str._s_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esi + 0x284]
add eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x358]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040997a
add dword [ebp - 0x88], 0x32
add dword [ebp - 4], 0x104
cmp dword [edi], ebx
jg 0x40e939
lea ecx, [ebp - 0x84]
call fcn.00409822
cmp dword [ebp - 0x154], 0
je 0x40ecfb
lea eax, [esi + 0x968]
lea ecx, [ebp - 0x84]
push eax
push str.PasswordStr
call fcn.0040997a
push dword [esi + 0x99c]
push str.PasswdLogCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x60]
push str.DelayTime
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2d8]
push str.QuoteCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2dc]
push str.SecretCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2e0]
push str.IPAddrCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x5c]
push str.OneClickPopup
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x388]
push str.AbnormalButton
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x9ac]
push str.DialUpCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x320]
push str.NickNameCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x38c]
push str.AbsenceNonPopup
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea eax, [esi + 0x324]
lea ecx, [ebp - 0x84]
push eax
push str.NickNameStr
call fcn.0040997a
lea eax, [esi + 0x356]
lea ecx, [ebp - 0x84]
push eax
push str.GroupNameStr
call fcn.0040997a
lea eax, [esi + 0x3a4]
lea ecx, [ebp - 0x84]
push eax
push str.Lang
call fcn.0040997a
push dword [esi + 0x7c0]
push str.Sort
lea ecx, [ebp - 0x84]
call fcn.004098f9
push dword [esi + 0x7c4]
push str.UpdateTime
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x7c8]
push str.KeepHostTime
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x7cc]
push str.MsgMinimize
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x7d8]
push str.ExtendEntry
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2f8]
push str.ControlIME
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2fc]
push str.GlidLine
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x300]
push str.ColumnItems
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea eax, [esi + 0x7dc]
lea ecx, [ebp - 0x84]
push eax
push 0x41e488
call fcn.0040997a
push 1
lea ecx, [ebp - 0x84]
push str.HotKey
call fcn.004097a8
test eax, eax
je 0x40ec61
push dword [esi + 0x2e4]
push str.HotKeyCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2e8]
push str.HotKeyModify
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2ec]
push str.HotKeySend
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2f0]
push str.HotKeyRecv
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x2f4]
push str.HotKeyMisc
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea ecx, [ebp - 0x84]
call fcn.00409822
push dword [esi + 0x64]
push str.LogCheck
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea eax, [esi + 0x68]
lea ecx, [ebp - 0x84]
push eax
push 0x41e42c
call fcn.0040997a
lea eax, [esi + 0x16c]
lea ecx, [ebp - 0x84]
push eax
push str.SoundFile
call fcn.0040997a
lea eax, [esi + 0x3ae]
lea ecx, [ebp - 0x84]
push eax
push 0x41e418
call fcn.0040997a
lea eax, [esi + 0x4b2]
lea ecx, [ebp - 0x84]
push eax
push 0x41e410
call fcn.0040997a
lea eax, [esi + 0x6ba]
lea ecx, [ebp - 0x84]
push eax
push str.lastOpen
call fcn.0040997a
lea eax, [esi + 0x5b6]
lea ecx, [ebp - 0x84]
push eax
push str.lastSave
call fcn.0040997a
test byte [ebp + 8], 4
je 0x40ef0e
push 1
lea ecx, [ebp - 0x84]
push str.WindowSize
call fcn.004097a8
test eax, eax
je 0x40ef0e
push dword [esi + 0x814]
push str.SendNickName
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x828]
push str.SendUserName
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x818]
push str.SendAbsence
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x82c]
push str.SendPriority
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x81c]
push str.SendGroupName
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x820]
push str.SendHostName
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x824]
push str.SendIPAddr
lea ecx, [ebp - 0x84]
call fcn.0040986f
push 1
lea ecx, [ebp - 0x84]
push str.SendOrder
call fcn.004097a8
test eax, eax
je 0x40ee11
xor edi, edi
push edi
lea eax, [ebp - 0x150]
push 0x41d2e8
inc edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x150]
push dword [esi + edi*4 + 0x82c]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040986f
cmp edi, 7
jl 0x40edd1
lea ecx, [ebp - 0x84]
call fcn.00409822
push dword [esi + 0x84c]
push str.SendXdiff
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x850]
push str.SendYdiff
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x854]
push str.SendMidYdiff
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x858]
push str.SendSavePos
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x85c]
push str.SendXpos
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x860]
push str.SendYpos
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x864]
push str.RecvXdiff
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x868]
push str.RecvYdiff
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x86c]
push str.RecvSavePos
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x870]
push str.RecvXpos
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x874]
push str.RecvYpos
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 8], 8
je 0x40efa1
push 1
lea ecx, [ebp - 0x84]
push str.Fonts
call fcn.004097a8
test eax, eax
je 0x40efa1
lea eax, [esi + 0x878]
lea ecx, [ebp - 0x84]
push eax
push str.SendEdit
push ecx
mov ecx, esi
call fcn.0040f44a
lea ecx, [esi + 0x8b4]
lea edx, [ebp - 0x84]
push ecx
push str.SendListView
push edx
mov ecx, esi
call fcn.0040f44a
lea ecx, [esi + 0x8f0]
lea edx, [ebp - 0x84]
push ecx
push str.RecvHead
push edx
mov ecx, esi
call fcn.0040f44a
lea ecx, [esi + 0x92c]
lea edx, [ebp - 0x84]
push ecx
push str.RecvEdit
push edx
mov ecx, esi
call fcn.0040f44a
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 8], 0x10
je 0x40f094
push 1
lea ecx, [ebp - 0x84]
push str.BroadCast
call fcn.004097a8
test eax, eax
je 0x40f094
mov dword [ebp - 0x154], 0
lea ebx, [esi + 0x9bc]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x40f02d
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x150]
push eax
inc dword [ebp - 0x154]
push 0x41d2e8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x84]
push dword [edi + 8]
push edx
call fcn.0040997a
push edi
mov ecx, ebx
call dword [ebp - 4]
mov edi, eax
test edi, edi
jne 0x40efea
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x150]
push eax
inc dword [ebp - 0x154]
push 0x41d2e8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x420]
lea edx, [ebp - 0x150]
push 0xc8
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.0040991f
cmp eax, 1
jne 0x40f089
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x84]
push eax
call fcn.00409a27
cmp eax, 1
je 0x40f02d
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 8], 0x20
je 0x40f12b
push dword [esi + 0x7d0]
push str.DefaultUrl
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x7d4]
push str.ShellExec
lea ecx, [ebp - 0x84]
call fcn.0040986f
push 1
lea ecx, [ebp - 0x84]
push str.ClickableUrl
call fcn.004097a8
test eax, eax
je 0x40f12b
lea edi, [esi + 0x9a0]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x40f120
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x154], ecx
lea eax, [ebx + 0x3a]
lea ecx, [ebx + 8]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040997a
push ebx
mov ecx, edi
call dword [ebp - 0x154]
mov ebx, eax
test ebx, ebx
jne 0x40f0fe
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 8], 0x40
je 0x40f178
push 1
lea ecx, [ebp - 0x84]
push str.Priority
call fcn.004097a8
test eax, eax
je 0x40f178
push dword [esi + 0x38]
push str.PriorityMax
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [esi + 0x3c]
push str.PriorityReject
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 9], 0x10
je 0x40f30c
push 1
lea ecx, [ebp - 0x84]
push str.HostInfo
call fcn.004097a8
test eax, eax
je 0x40f30c
call fcn.0040c536
test byte [ebp + 9], 0x20
mov dword [ebp - 4], eax
je 0x40f1b7
push 0
lea ecx, [ebp - 0x84]
call fcn.00409a99
xor edi, edi
mov dword [ebp - 0x154], edi
mov eax, dword [ebp - 0x154]
cmp dword [esi + 0xc], eax
jle 0x40f301
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x150]
mov ebx, dword [eax + edi]
lea eax, [ebx + 0x32]
push eax
push ebx
push str._s:_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esi + 0x7c8]
add eax, dword [ebx + 0xd4]
cmp eax, dword [ebp - 4]
jl 0x40f2db
cmp dword [ebx + 0xd8], 0xa
je 0x40f2db
push 1
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x84]
call fcn.004097a8
test eax, eax
je 0x40f2f3
push ebx
lea ecx, [ebp - 0x84]
push str.UserName
call fcn.0040997a
lea eax, [ebx + 0x32]
lea ecx, [ebp - 0x84]
push eax
push str.HostName
call fcn.0040997a
push dword [ebx + 0x64]
push str.IPAddr
lea ecx, [ebp - 0x84]
call fcn.004098f9
push dword [ebx + 0x68]
push str.PortNo
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea ecx, [ebx + 0x6c]
push ecx
push str.NickName
lea ecx, [ebp - 0x84]
call fcn.0040997a
lea ecx, [ebx + 0x9e]
push ecx
push str.GroupName
lea ecx, [ebp - 0x84]
call fcn.0040997a
push dword [ebx + 0xd8]
push str.Priority
lea ecx, [ebp - 0x84]
call fcn.0040986f
push dword [ebx + 0xd4]
push str.UpdateTime
lea ecx, [ebp - 0x84]
call fcn.004098f9
lea ecx, [ebp - 0x84]
call fcn.00409822
jmp 0x40f2f3
test byte [ebp + 9], 0x40
je 0x40f2f3
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x84]
push eax
call fcn.00409a99
add edi, 4
inc dword [ebp - 0x154]
jmp 0x40f1bf
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 8], 0x80
je 0x40f3b0
push 1
lea ecx, [ebp - 0x84]
push str.FindStr
call fcn.004097a8
test eax, eax
je 0x40f3b0
push dword [esi + 0x288]
push str.FindMax2
lea ecx, [ebp - 0x84]
xor edi, edi
xor ebx, ebx
call fcn.0040986f
push dword [esi + 0x290]
push str.FindAll
lea ecx, [ebp - 0x84]
call fcn.0040986f
cmp dword [esi + 0x288], edi
jle 0x40f3a5
push ebx
lea eax, [ebp - 0x254]
push 0x41d2e8
inc ebx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esi + 0x28c]
add eax, edi
lea ecx, [ebp - 0x254]
push eax
add edi, 0x32
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040997a
cmp dword [esi + 0x288], ebx
jg 0x40f368
lea ecx, [ebp - 0x84]
call fcn.00409822
test byte [ebp + 9], 0x80
je 0x40f431
lea edi, [esi + 0x2c0]
cmp dword [edi], 0
je 0x40f431
push 1
lea ecx, [ebp - 0x84]
push str.Crypt
call fcn.004097a8
test eax, eax
je 0x40f431
push dword [esi + 0x2c4]
push dword [edi]
push str.PrivBlob
lea ecx, [ebp - 0x84]
call fcn.004099e5
mov eax, dword [esi + 0x2cc]
test eax, eax
je 0x40f410
push dword [esi + 0x2d0]
push eax
push str.PrivEncryptSeed
lea ecx, [ebp - 0x84]
call fcn.004099e5
push dword [esi + 0x2c8]
push str.PrivEncryptType
lea ecx, [ebp - 0x84]
call fcn.0040986f
lea ecx, [ebp - 0x84]
call fcn.00409822
lea ecx, [ebp - 0x84]
call fcn.00409719
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4