Function at 0x40e341
Capabilities:
Check os version

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 0x40e369
mov eax, str._s_d
push eax
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x84]
push eax
push str.HSTools
call fcn.004097cc
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 4], eax
je 0x40e4cc
call fcn.00417932
push eax
lea ecx, [ebp - 0x84]
push 0
call fcn.00409a4a
push dword [esi + 0x54]
push str.NoBeep
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x35c]
push str.ListGet
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x360]
push str.ListGetMSec
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x364]
push str.RetryMSec2
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x368]
push str.RetryMax
lea ecx, [ebp - 0x84]
call fcn.0040993f
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x40e43a
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov eax, str.RecvMaxNT
jb 0x40e43f
mov eax, str.RecvMax95
push dword [esi + 0x36c]
push eax
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x50]
push str.NoErase
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7dc]
push str.Debug
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x48]
push str.NoPopup
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x4c]
push str.OpenCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2e4]
push str.AllowSendList
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2e8]
push str.FileTransOpt
lea ecx, [ebp - 0x84]
call fcn.0040993f
test byte [ebp + 8], 2
je 0x40e5e4
push dword [esi + 0x26c]
push str.AbsenceSave
lea ecx, [ebp - 0x84]
lea edi, [esi + 0x274]
call fcn.0040993f
push dword [esi + 0x270]
push str.AbsenceCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [edi]
push str.AbsenceMax
lea ecx, [ebp - 0x84]
call fcn.0040993f
push 1
lea ecx, [ebp - 0x84]
push str.AbsenceStr
call fcn.00409878
cmp eax, 1
jne 0x40e5d9
xor ebx, ebx
cmp dword [edi], ebx
jle 0x40e5d9
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x154], 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 - 0x154]
lea ecx, [ebp - 0x358]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00409a4a
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 + 0x280]
add eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x358]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00409a4a
add dword [ebp - 0x88], 0x32
add dword [ebp - 0x154], 0x104
cmp dword [edi], ebx
jg 0x40e54b
lea ecx, [ebp - 0x84]
call fcn.004098f2
cmp dword [ebp - 4], 0
je 0x40e911
lea eax, [esi + 0x934]
lea ecx, [ebp - 0x84]
push eax
push str.PasswordStr
call fcn.00409a4a
push dword [esi + 0x968]
push str.PasswdLogCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x5c]
push str.DelayTime
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2b8]
push str.QuoteCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2bc]
push str.SecretCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2c0]
push str.IPAddrCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x58]
push str.OneClickPopup
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x354]
push str.AbnormalButton
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x984]
push str.DialUpCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2ec]
push str.NickNameCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x358]
push str.AbsenceNonPopup
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea eax, [esi + 0x2f0]
lea ecx, [ebp - 0x84]
push eax
push str.NickNameStr
call fcn.00409a4a
lea eax, [esi + 0x322]
lea ecx, [ebp - 0x84]
push eax
push str.GroupNameStr
call fcn.00409a4a
lea eax, [esi + 0x370]
lea ecx, [ebp - 0x84]
push eax
push str.Lang
call fcn.00409a4a
push dword [esi + 0x78c]
push str.Sort
lea ecx, [ebp - 0x84]
call fcn.004099c9
push dword [esi + 0x790]
push str.UpdateTime
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x794]
push str.KeepHostTime
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x798]
push str.MsgMinimize
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7a4]
push str.ExtendEntry
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2d8]
push str.ControlIME
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2dc]
push str.GlidLine
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2e0]
push str.ColumnItems
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea eax, [esi + 0x7a8]
lea ecx, [ebp - 0x84]
push eax
push 0x41e42c
call fcn.00409a4a
push 1
lea ecx, [ebp - 0x84]
push str.HotKey
call fcn.00409878
cmp eax, 1
jne 0x40e877
push dword [esi + 0x2c4]
push str.HotKeyCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2c8]
push str.HotKeyModify
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2cc]
push str.HotKeySend
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2d0]
push str.HotKeyRecv
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x2d4]
push str.HotKeyMisc
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea ecx, [ebp - 0x84]
call fcn.004098f2
push dword [esi + 0x60]
push str.LogCheck
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea eax, [esi + 0x64]
lea ecx, [ebp - 0x84]
push eax
push 0x41e3d0
call fcn.00409a4a
lea eax, [esi + 0x168]
lea ecx, [ebp - 0x84]
push eax
push str.SoundFile
call fcn.00409a4a
lea eax, [esi + 0x37a]
lea ecx, [ebp - 0x84]
push eax
push 0x41e3bc
call fcn.00409a4a
lea eax, [esi + 0x47e]
lea ecx, [ebp - 0x84]
push eax
push 0x41e3b4
call fcn.00409a4a
lea eax, [esi + 0x686]
lea ecx, [ebp - 0x84]
push eax
push str.lastOpen
call fcn.00409a4a
lea eax, [esi + 0x582]
lea ecx, [ebp - 0x84]
push eax
push str.lastSave
call fcn.00409a4a
test byte [ebp + 8], 4
je 0x40eb7d
push 1
lea ecx, [ebp - 0x84]
push str.WindowSize
call fcn.00409878
cmp eax, 1
jne 0x40eb7d
push dword [esi + 0x7e0]
push str.SendNickName
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7f4]
push str.SendUserName
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7e4]
push str.SendAbsence
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7f8]
push str.SendPriority
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7e8]
push str.SendGroupName
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7ec]
push str.SendHostName
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7f0]
push str.SendIPAddr
lea ecx, [ebp - 0x84]
call fcn.0040993f
xor ecx, ecx
mov edi, dword [esi + ecx*4 + 0x7fc]
cmp edi, 7
jge 0x40ea0c
test edi, edi
jl 0x40ea0c
lea eax, [ecx + 1]
mov edx, eax
cmp eax, 7
jge 0x40ea00
lea ebx, [esi + eax*4 + 0x7fc]
cmp dword [ebx], edi
je 0x40ea00
add ebx, 4
inc edx
cmp edx, 7
jl 0x40e9f3
cmp edx, 7
jne 0x40ea0c
mov ecx, eax
cmp eax, 7
jl 0x40e9d2
cmp ecx, 7
je 0x40ea27
push 0
push 0x41d268
push str.Illegal_order
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40ea80
push 1
lea ecx, [ebp - 0x84]
push str.SendOrder
call fcn.00409878
cmp eax, 1
jne 0x40ea80
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 + 0x7f8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0040993f
cmp edi, 7
jl 0x40ea40
lea ecx, [ebp - 0x84]
call fcn.004098f2
push dword [esi + 0x818]
push str.SendXdiff
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x81c]
push str.SendYdiff
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x820]
push str.SendMidYdiff
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x824]
push str.SendSavePos
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x828]
push str.SendXpos
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x82c]
push str.SendYpos
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x830]
push str.RecvXdiff
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x834]
push str.RecvYdiff
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x838]
push str.RecvSavePos
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x83c]
push str.RecvXpos
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x840]
push str.RecvYpos
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea ecx, [ebp - 0x84]
call fcn.004098f2
test byte [ebp + 8], 8
je 0x40ec11
push 1
lea ecx, [ebp - 0x84]
push str.Fonts
call fcn.00409878
cmp eax, 1
jne 0x40ec11
lea eax, [esi + 0x844]
lea ecx, [ebp - 0x84]
push eax
push str.SendEdit
push ecx
mov ecx, esi
call fcn.0040f042
lea ecx, [esi + 0x880]
lea edx, [ebp - 0x84]
push ecx
push str.SendListView
push edx
mov ecx, esi
call fcn.0040f042
lea ecx, [esi + 0x8bc]
lea edx, [ebp - 0x84]
push ecx
push str.RecvHead
push edx
mov ecx, esi
call fcn.0040f042
lea ecx, [esi + 0x8f8]
lea edx, [ebp - 0x84]
push ecx
push str.RecvEdit
push edx
mov ecx, esi
call fcn.0040f042
lea ecx, [ebp - 0x84]
call fcn.004098f2
test byte [ebp + 8], 0x10
je 0x40ed18
push 1
lea ecx, [ebp - 0x84]
push str.BroadCast
call fcn.00409878
cmp eax, 1
jne 0x40ed18
mov dword [ebp - 4], 0
lea edi, [esi + 0x96c]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x40ecb7
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x154], ecx
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x150]
push eax
inc dword [ebp - 4]
push 0x41d2e8
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [ebx + 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.00417c20
add esp, 8
lea ecx, [ebp - 0x420]
lea edx, [ebp - 0x150]
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.00409a4a
push ebx
mov ecx, edi
call dword [ebp - 0x154]
mov ebx, eax
test ebx, ebx
jne 0x40ec5b
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x150]
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 - 0x150]
push 0xc8
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.004099ef
cmp eax, 1
jne 0x40ed0d
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x84]
push eax
call fcn.00409a9a
cmp eax, 1
je 0x40ecb7
lea ecx, [ebp - 0x84]
call fcn.004098f2
test byte [ebp + 8], 0x20
je 0x40edaa
push dword [esi + 0x79c]
push str.DefaultUrl
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x7a0]
push str.ShellExec
lea ecx, [ebp - 0x84]
call fcn.0040993f
push 1
lea ecx, [ebp - 0x84]
push str.ClickableUrl
call fcn.00409878
cmp eax, 1
jne 0x40edaa
lea ebx, [esi + 0x978]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x40ed9f
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
lea eax, [edi + 0x3a]
lea ecx, [edi + 8]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00409a4a
push edi
mov ecx, ebx
call dword [ebp - 4]
mov edi, eax
test edi, edi
jne 0x40ed80
lea ecx, [ebp - 0x84]
call fcn.004098f2
test byte [ebp + 8], 0x40
je 0x40edf8
push 1
lea ecx, [ebp - 0x84]
push str.Priority
call fcn.00409878
cmp eax, 1
jne 0x40edf8
push dword [esi + 0x38]
push str.PriorityMax
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [esi + 0x3c]
push str.PriorityReject
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea ecx, [ebp - 0x84]
call fcn.004098f2
test byte [ebp + 9], 0x10
je 0x40ef8b
push 1
lea ecx, [ebp - 0x84]
push str.HostInfo
call fcn.00409878
cmp eax, 1
jne 0x40ef8b
call fcn.0040c44c
test byte [ebp + 9], 0x20
mov dword [ebp - 0x154], eax
je 0x40ee3b
push 0
lea ecx, [ebp - 0x84]
call fcn.00409b0c
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
cmp dword [esi + 0xc], eax
jle 0x40ef80
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 + 0x794]
add eax, dword [ebx + 0xd4]
cmp eax, dword [ebp - 0x154]
jl 0x40ef5d
cmp dword [ebx + 0xd8], 0xa
je 0x40ef5d
push 1
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x84]
call fcn.00409878
cmp eax, 1
jne 0x40ef75
push ebx
lea ecx, [ebp - 0x84]
push str.UserName
call fcn.00409a4a
lea eax, [ebx + 0x32]
lea ecx, [ebp - 0x84]
push eax
push str.HostName
call fcn.00409a4a
push dword [ebx + 0x64]
push str.IPAddr
lea ecx, [ebp - 0x84]
call fcn.004099c9
push dword [ebx + 0x68]
push str.PortNo
lea ecx, [ebp - 0x84]
call fcn.0040993f
lea ecx, [ebx + 0x6c]
push ecx
push str.NickName
lea ecx, [ebp - 0x84]
call fcn.00409a4a
lea ecx, [ebx + 0x9e]
push ecx
push str.GroupName
lea ecx, [ebp - 0x84]
call fcn.00409a4a
push dword [ebx + 0xd8]
push str.Priority
lea ecx, [ebp - 0x84]
call fcn.0040993f
push dword [ebx + 0xd4]
push str.UpdateTime
lea ecx, [ebp - 0x84]
call fcn.004099c9
lea ecx, [ebp - 0x84]
call fcn.004098f2
jmp 0x40ef75
test byte [ebp + 9], 0x40
je 0x40ef75
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x84]
push eax
call fcn.00409b0c
add edi, 4
inc dword [ebp - 4]
jmp 0x40ee40
lea ecx, [ebp - 0x84]
call fcn.004098f2
test byte [ebp + 8], 0x80
je 0x40f029
push 1
lea ecx, [ebp - 0x84]
push str.FindStr
call fcn.00409878
cmp eax, 1
jne 0x40f029
lea edi, [esi + 0x284]
lea ecx, [ebp - 0x84]
push dword [edi]
push str.FindMax2
xor ebx, ebx
call fcn.0040993f
push dword [esi + 0x28c]
push str.FindAll
lea ecx, [ebp - 0x84]
call fcn.0040993f
cmp dword [edi], ebx
jle 0x40f01e
mov dword [ebp - 4], ebx
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 + 0x288]
add eax, dword [ebp - 4]
lea ecx, [ebp - 0x254]
push eax
push ecx
lea ecx, [ebp - 0x84]
call fcn.00409a4a
add dword [ebp - 4], 0x32
cmp dword [edi], ebx
jg 0x40efe3
lea ecx, [ebp - 0x84]
call fcn.004098f2
lea ecx, [ebp - 0x84]
call fcn.004097e9
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4