Function at 0x40b290
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x40f620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [esp + 0x1ac]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
push 0x66
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CDialog::CDialog
xor edi, edi
lea ecx, [ebx + 0x74]
push edi
mov dword [esp + 0x1b8], edi
call fcn.0040d9d0
push edi
lea ecx, [ebx + 0x234]
mov byte [esp + 0x1b8], 1
call fcn.0040def0
push edi
lea ecx, [ebx + 0x344]
mov byte [esp + 0x1b8], 2
call fcn.0040d620
lea esi, [ebx + 0x89ac]
mov byte [esp + 0x1b4], 3
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi], 0x410d08
lea esi, [ebx + 0x89ec]
mov byte [esp + 0x1b4], 4
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi], 0x410c48
lea esi, [ebx + 0x8a2c]
mov byte [esp + 0x1b4], 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi], 0x4104f8
lea esi, [ebx + 0x8a6c]
mov byte [esp + 0x1b4], 6
mov ecx, esi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [esi], 0x4104f8
lea ebp, [ebx + 0x8abc]
mov byte [esp + 0x1b4], 7
mov ecx, ebp
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
push 0x4136f8
mov ecx, ebp
mov byte [esp + 0x1b8], 8
mov dword [ebx], 0x410b70
mov dword [ebx + 0x8aac], esi
mov dword [ebx + 0x8ab0], esi
mov dword [ebx + 0x8ab4], edi
mov dword [ebx + 0x8ab8], esi
call sub.MFC42.DLL_CString::operator
mov dword [ebx + 0x8ac0], esi
mov dword [ebx + 0x8ac4], edi
mov dword [ebx + 0x8ac8], edi
mov dword [ebx + 0x8acc], 0x3e8
mov dword [ebx + 0x8ad0], edi
mov dword [ebx + 0x8ad4], 1
mov dword [ebx + 0x8ad8], edi
mov dword [ebx + 0x8adc], esi
mov dword [ebx + 0x8ae0], edi
mov dword [ebx + 0x8ae4], esi
mov dword [ebx + 0x8ae8], esi
mov dword [ebx + 0x8aec], edi
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x413340
push str.ProtocalTool.ini
mov dword [ebx + 0x8af0], eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x40b7fb
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xe4]
push ecx
push 0xc8
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
lea edi, [esp + 0xf0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
xor edx, edx
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x10], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40b4d2
mov al, byte [esp + edx + 0xe4]
test al, al
je 0x40b4d2
cmp al, 0xd
je 0x40b4d2
cmp al, 0xa
je 0x40b4d2
cmp al, 0x3d
jne 0x40b4a1
mov dword [esp + 0x10], 1
jmp 0x40b4bc
cmp al, 0x20
je 0x40b4bc
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40b4b7
mov byte [esp + esi + 0x80], al
inc esi
jmp 0x40b4bc
mov byte [esp + ebp + 0x1c], al
inc ebp
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jl 0x40b480
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x80]
push eax
push ecx
lea edx, [esp + 0xec]
push str._s___s
push edx
mov byte [esp + esi + 0x90], 0
mov byte [esp + ebp + 0x2c], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp esi, 2
jl 0x40b7e3
cmp ebp, 1
jl 0x40b7e3
mov esi, str.ADDR
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b544
test cl, cl
je 0x40b540
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b544
add eax, 2
add esi, 2
test cl, cl
jne 0x40b520
xor eax, eax
jmp 0x40b549
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b566
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8ac8], eax
jmp 0x40b7e3
mov esi, str.LINK
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b596
test cl, cl
je 0x40b592
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b596
add eax, 2
add esi, 2
test cl, cl
jne 0x40b572
xor eax, eax
jmp 0x40b59b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b5b8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8aac], eax
jmp 0x40b7e3
mov esi, str.PROTOCAL
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b5e8
test cl, cl
je 0x40b5e4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b5e8
add eax, 2
add esi, 2
test cl, cl
jne 0x40b5c4
xor eax, eax
jmp 0x40b5ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b60a
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8ab8], eax
jmp 0x40b7e3
mov esi, 0x413304
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b63a
test cl, cl
je 0x40b636
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b63a
add eax, 2
add esi, 2
test cl, cl
jne 0x40b616
xor eax, eax
jmp 0x40b63f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b655
lea eax, [esp + 0x1c]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebx + 0x64], eax
jmp 0x40b7e3
mov esi, str.PORT
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b685
test cl, cl
je 0x40b681
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b685
add eax, 2
add esi, 2
test cl, cl
jne 0x40b661
xor eax, eax
jmp 0x40b68a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b6a7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8ab4], eax
jmp 0x40b7e3
mov esi, 0x4132f8
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b6d7
test cl, cl
je 0x40b6d3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b6d7
add eax, 2
add esi, 2
test cl, cl
jne 0x40b6b3
xor eax, eax
jmp 0x40b6dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b6f5
lea eax, [esp + 0x1c]
lea ecx, [ebx + 0x8abc]
push eax
call sub.MFC42.DLL_CString::operator
jmp 0x40b7e3
mov esi, str.BAUD
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b725
test cl, cl
je 0x40b721
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b725
add eax, 2
add esi, 2
test cl, cl
jne 0x40b701
xor eax, eax
jmp 0x40b72a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b747
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8ab0], eax
jmp 0x40b7e3
mov esi, 0x4132e8
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b777
test cl, cl
je 0x40b773
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b777
add eax, 2
add esi, 2
test cl, cl
jne 0x40b753
xor eax, eax
jmp 0x40b77c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b796
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8ac0], eax
jmp 0x40b7e3
mov esi, str.SCAN
lea eax, [esp + 0x80]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b7c6
test cl, cl
je 0x40b7c2
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b7c6
add eax, 2
add esi, 2
test cl, cl
jne 0x40b7a2
xor eax, eax
jmp 0x40b7cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b7e3
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebx + 0x8acc], eax
mov eax, dword [esp + 0x14]
test byte [eax + 0xc], 0x10
je 0x40b446
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret 4