Function at 0x406f11
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItemInt]
xor edi, edi
push edi
push edi
push 0x3fd
push dword [ebp + 8]
call esi
push edi
push edi
push 0x442
mov dword [0x40c534], eax
push dword [ebp + 8]
call esi
push edi
mov ebx, 0x4a2
push edi
push ebx
push dword [ebp + 8]
mov dword [0x40c538], eax
call esi
push dword [0x40c538]
mov dword [0x40c53c], eax
call fcn.00401899
pop ecx
call fcn.004018a3
mov esi, dword [sym.imp.USER32.dll_SetDlgItemInt]
push edi
push eax
push 0x442
push dword [ebp + 8]
mov dword [0x40c538], eax
call esi
push dword [0x40c53c]
call fcn.004018d8
pop ecx
call fcn.004018e2
push edi
push eax
push ebx
mov dword [0x40c53c], eax
push dword [ebp + 8]
call esi
cmp dword [0x40d184], edi
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
je 0x407028
cmp dword [0x40d630], edi
je 0x407028
mov eax, dword [0x40d1a4]
mov dword [0x40d5e0], edi
mov dword [0x40d5f0], edi
push dword [eax]
call sub.WSOCK32.dll_htonl
mov ecx, dword [0x40d1a4]
mov dword [0x40d188], eax
mov dword [0x40d5b8], eax
mov dword [0x40c524], eax
mov eax, dword [0x40d630]
push dword [ecx + eax*4 - 4]
call sub.WSOCK32.dll_htonl
mov dword [0x40c528], eax
mov eax, dword [0x40c524]
push eax
call fcn.0040215b
pop ecx
push eax
push 0x3e9
push dword [ebp + 8]
call ebx
push dword [0x40c528]
call fcn.0040215b
pop ecx
push eax
push 0x3ea
push dword [ebp + 8]
call ebx
push 1
pop eax
jmp 0x4071a5
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0x20]
push 0x20
push eax
push 0x3e9
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x40]
push 0x20
push eax
push 0x3ea
push dword [ebp + 8]
call esi
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40708c
lea edi, [ebp - 0x40]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x40]
push eax
push 0x3e9
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea edi, [ebp - 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4070ca
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x40]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x20]
push eax
push 0x3ea
push dword [ebp + 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
or esi, 0xffffffff
lea edi, [ebp - 0x20]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407178
lea eax, [ebp - 0x20]
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, esi
mov dword [0x40c524], eax
mov dword [0x40d188], eax
mov dword [0x40d5b8], eax
je 0x407178
lea edi, [ebp - 0x40]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40715b
lea eax, [ebp - 0x40]
push eax
call sub.WSOCK32.dll_inet_addr
cmp eax, esi
mov dword [0x40c528], eax
je 0x40715b
push eax
call sub.WSOCK32.dll_ntohl
push dword [0x40c524]
mov esi, eax
call sub.WSOCK32.dll_ntohl
cmp eax, esi
jbe 0x406ff2
mov ecx, dword [0x40c524]
mov eax, dword [0x40c528]
mov dword [0x40c524], eax
mov dword [0x40c528], ecx
mov dword [0x40d188], eax
mov dword [0x40d5b8], eax
jmp 0x406ff7
push 0x30
push dword [0x40b990]
push str.Invalid_stop_IP_address_
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x3ea
jmp 0x407193
push 0x30
push dword [0x40b990]
push str.Invalid_start_IP_address_
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x3e9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret