Function at 0x401000
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x4fc
mov eax, dword [esp + 0x500]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x41a874]
push eax
push eax
push 0xbbd
push esi
mov dword [esp + 0x270], ecx
call dword [sym.imp.USER32.dll_GetDlgItemInt]
xor edx, edx
mov dword [esp + 0x110], eax
test eax, eax
setne dl
mov ebx, dword [sym.imp.USER32.dll_GetDlgItemTextA]
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x77
push eax
push 0xbba
push esi
mov ebp, edx
call ebx
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_inet_addr
test ebp, ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, eax
je 0x4010b7
test edi, edi
jne 0x4010b7
push str.Address_Pool
lea edx, [esp + 0x18]
push str.Bad_format_for_field__s
push edx
call ebp
push 0x30
lea eax, [esp + 0x24]
push 0x415200
push eax
push esi
call fcn.004032c0
add esp, 0x1c
mov edx, dword [esp + 0x110]
xor ecx, ecx
test edx, edx
setne cl
lea edx, [esp + 0x14]
mov dword [esp + 0x10c], edi
mov dword [esp + 0x10], ecx
push 0x77
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x18]
push edx
push 0xbbb
push esi
rep stosd dword es:[edi], eax
call ebx
lea eax, [esp + 0x14]
push eax
call sub.WSOCK32.dll_inet_addr
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40112a
test edi, edi
jne 0x40112a
push str.Mask
lea ecx, [esp + 0x18]
push str.Bad_format_for_field__s
push ecx
call ebp
push 0x30
lea edx, [esp + 0x24]
push 0x415200
push edx
push esi
call fcn.004032c0
add esp, 0x1c
mov dword [esp + 0x114], edi
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x77
push eax
push 0xbbc
push esi
call ebx
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_inet_addr
lea edx, [esp + 0x14]
mov dword [esp + 0x118], eax
push 0x77
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x18]
push edx
push 0xbc0
rep stosd dword es:[edi], eax
push esi
call ebx
lea eax, [esp + 0x14]
push eax
call sub.WSOCK32.dll_inet_addr
lea ecx, [esp + 0x120]
push 0xff
push ecx
push 0xbbe
push esi
mov dword [esp + 0x12c], eax
call ebx
lea edx, [esp + 0x220]
push 0x3f
push edx
push 0xbc1
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_GetDlgItemInt]
push 0
push 0
push 0xbc2
push esi
call edi
mov dword [esp + 0x264], eax
lea eax, [esp + 0x268]
push 0x3f
push eax
push 0xbc3
push esi
call ebx
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x4013a6
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4013a6
push 0
push 0
push 0xbbd
push esi
call edi
test eax, eax
mov dword [esp + 0x110], eax
jne 0x401233
mov ecx, dword [esp + 0x510]
push 0x30
push 0x415200
push str.DHCP_Pool_is_empty_nDHCP_server_will_be_desactivated
push ecx
call fcn.004032c0
add esp, 0x10
jmp 0x4012c0
cmp dword [0x41a6e8], eax
jle 0x401260
mov esi, dword [esp + 0x510]
push 0x30
push 0x415200
push str.Reducing_DHCP_pool_may_cause_duplicated_addresses
push esi
call fcn.004032c0
mov eax, dword [esp + 0x120]
add esp, 0x10
jmp 0x401267
mov esi, dword [esp + 0x510]
cmp dword [0x41a724], eax
je 0x4012c7
lea edx, [eax*8]
sub edx, eax
mov eax, dword [0x41a6e0]
shl edx, 2
push edx
push eax
call fcn.0040acc2
add esp, 8
mov dword [0x41a6e0], eax
test eax, eax
jne 0x4012c0
mov eax, dword [esp + 0x110]
test eax, eax
je 0x4012c7
push 0x10
push 0x415200
push str.Can_not_allocate_memory
push esi
call fcn.004032c0
add esp, 0x10
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x110]
cmp dword [0x41a6e8], eax
jl 0x4012d4
mov dword [0x41a6e8], eax
mov ecx, 0x100
lea esi, [esp + 0x10c]
mov edi, 0x41a720
rep movsd dword es:[edi], dword [esi]
mov esi, 0x41508c
mov ecx, dword [esi - 4]
mov edx, dword [esi]
mov eax, dword [esi - 8]
push 0x424880
push ecx
mov ecx, dword [esi - 0xc]
push edx
push eax
push ecx
push str.SOFTWARETFTPD32DHCP
call fcn.00403840
add esi, 0x10
add esp, 0x18
cmp esi, 0x4150fc
jb 0x4012ec
mov esi, 1
mov edi, 0x41a87c
push esi
push str.AddOptionNumber
lea edx, [esp + 0x94]
push str._s_d
push edx
call ebp
push 0x424880
push 4
lea eax, [edi - 4]
push 4
lea ecx, [esp + 0xa8]
push eax
push ecx
push str.SOFTWARETFTPD32DHCP
call fcn.00403840
push esi
push str.AddOptionValue
lea edx, [esp + 0xbc]
push str._s_d
push edx
call ebp
push 0x424880
push 1
push 0x40
lea eax, [esp + 0xd0]
push edi
push eax
push str.SOFTWARETFTPD32DHCP
call fcn.00403840
add esp, 0x50
inc esi
add edi, 0x44
lea ecx, [esi - 1]
cmp ecx, 0xa
jb 0x401322
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4fc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4fc
ret