Function at 0x401000
Capabilities:
Read .ini file
Set socket configuration

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, str.._scanner.ini
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, 0x104
push esi
push ebx
mov ebp, 0x40c55c
push 0x40bba0
push ebp
push str.FTPHelper
push str.HelperApps
call edi
push esi
push 0x20
push 0x40bca4
push ebp
push str.FTPHelperParams
push str.HelperApps
call edi
push esi
push ebx
push 0x40bcc4
push ebp
push str.TelnetHelper
push str.HelperApps
call edi
push esi
push 0x20
push 0x40bdc8
push ebp
push str.TelnetHelperParams
push str.HelperApps
call edi
push esi
push ebx
push 0x40bde8
push ebp
push str.WebHelper
push str.HelperApps
call edi
push esi
push 0x20
push 0x40beec
push ebp
push str.WebHelperParams
push str.HelperApps
call edi
push esi
push ebx
push 0x40bf0c
push str.._scanner.lst
push str.PortList
push str.PortLists
call edi
push esi
push ebx
push 0x40c010
push str.._scanner.lst
push str.PortList1
push str.PortLists
call edi
push esi
push ebx
push 0x40c114
push str.._scanner.lst
push str.PortList2
push str.PortLists
call edi
push esi
push ebx
push 0x40c218
push str.._scanner.lst
push str.PortList3
push str.PortLists
call edi
push esi
push ebx
push 0x40c31c
push str.._scanner.lst
push str.PortList4
push str.PortLists
call edi
push esi
push ebx
push 0x40c420
push ebp
push str.Hostname
push 0x40b104
call edi
push esi
lea eax, [esp + 0x14]
push 0x28
mov ebp, str.127.0.0.1
push eax
push ebp
mov ebx, 0x40b11c
push str.StartIP
push ebx
call edi
lea eax, [esp + 0x10]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [0x40c524], eax
push esi
lea eax, [esp + 0x14]
push 0x28
push eax
push ebp
push str.StopIP
push ebx
call edi
lea eax, [esp + 0x10]
push eax
call sub.WSOCK32.dll_inet_addr
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 1
push str.IgnoreIpZero
push ebx
mov dword [0x40c528], eax
call edi
push esi
push 1
push str.IgnoreIP255
push ebx
mov dword [0x40c52c], eax
call edi
push esi
push 0x190
mov ebx, 0x40b14c
push str.PingTimeout
push ebx
mov dword [0x40c530], eax
call edi
mov ebp, 0xfa0
push esi
push ebp
push str.ConnectTimeout
push ebx
mov dword [0x40c534], eax
call edi
push esi
push ebp
push str.ReadTimeout
push ebx
mov dword [0x40c538], eax
call edi
push esi
push 0
mov ebx, 0x40b17c
push str.ResolveHostnames
push ebx
mov dword [0x40c53c], eax
call edi
push esi
push 1
mov dword [0x40c540], eax
push str.OnlyScanPing
push ebx
call edi
push esi
push 0
push str.ShowResponses
push ebx
mov dword [0x40c544], eax
call edi
push esi
push 3
pop ebp
mov dword [0x40c548], eax
push ebp
push str.ScanType
push ebx
call edi
test eax, eax
mov dword [0x40c54c], eax
jbe 0x40121e
cmp eax, 6
jb 0x401224
mov dword [0x40c54c], ebp
push esi
push 1
push str.AllListPortStart
push ebx
call edi
push esi
push 0x50
push str.AllListPortStop
push ebx
mov word [0x40c550], ax
call edi
push esi
push 1
push str.AllPortStart
push ebx
mov word [0x40c552], ax
call edi
push esi
push 0x50
push str.AllPortStop
push ebx
mov word [0x40c554], ax
call edi
push esi
push 0xa
pop esi
mov word [0x40c556], ax
push esi
push 0x40b210
push 0x40b208
call edi
cmp eax, esi
mov dword [0x40c558], eax
jb 0x401289
cmp eax, 0x1f4
jbe 0x40128f
mov dword [0x40c558], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret