Function at 0x4010a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x7bc
mov eax, dword [0x420050]
xor eax, esp
mov dword [esp + 0x7b8], eax
push ebx
mov ebx, dword [esp + 0x7c4]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push 0x6c0
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040c6f0
mov ecx, dword [0x42133c]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItemInt]
add esp, 0xc
push 0
push 0
push 0xbbd
push esi
mov dword [esp + 0x1b4], ecx
call ebp
xor edx, edx
test eax, eax
setne dl
mov dword [esp + 0x14], eax
push edx
push str.Address_Pool
push 0xbba
push esi
call fcn.00401000
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
push eax
push 0x419428
push 0xbbb
push esi
call fcn.00401000
push 0x78
lea ecx, [esp + 0x6f4]
push 0
push ecx
mov dword [esp + 0x44], eax
call fcn.0040c6f0
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextA]
add esp, 0x2c
push 0x77
lea edx, [esp + 0x6d4]
push edx
push 0xbbc
push esi
call edi
lea eax, [esp + 0x6d0]
push eax
call sub.WSOCK32.dll_inet_addr
push 0x78
lea ecx, [esp + 0x6d4]
push 0
push ecx
mov dword [esp + 0x28], eax
call fcn.0040c6f0
add esp, 0xc
push 0x77
lea edx, [esp + 0x6d4]
push edx
push 0xbc0
push esi
call edi
lea eax, [esp + 0x6d0]
push eax
call sub.WSOCK32.dll_inet_addr
push 0xff
lea ecx, [esp + 0x28]
push ecx
push 0xbbe
push esi
mov dword [esp + 0x30], eax
call edi
push 0x7f
lea edx, [esp + 0x128]
push edx
push 0xbc1
push esi
call edi
push 0
push 0
push 0xbc2
push esi
call ebp
push 0x7f
mov dword [esp + 0x1ac], eax
lea eax, [esp + 0x1b0]
push eax
push 0xbc3
push esi
call edi
cmp dword [esp + 0x10], 0
je 0x4013a0
cmp dword [esp + 0x18], 0
je 0x4013a0
push 0
push 0
push 0xbbd
push esi
call ebp
test eax, eax
mov dword [esp + 0x14], eax
jne 0x401237
push 0x30
push str.Tftpd32
push str.DHCP_Pool_is_empty_nDHCP_server_will_only_assign_nstatic_leases
push ebx
call fcn.00403450
add esp, 0x10
jmp 0x4012aa
cmp dword [0x421868], eax
jle 0x401258
push 0x30
push str.Tftpd32
push str.Reducing_DHCP_pool_may_cause_duplicated_addresses
push ebx
call fcn.00403450
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [0x4211ac], eax
je 0x4012ae
mov edx, dword [0x4211a4]
lea ecx, [eax*4]
push ecx
push edx
call fcn.0040c76a
add esp, 8
test eax, eax
mov dword [0x4211a4], eax
jne 0x4012aa
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4012ae
push 0x10
push str.Tftpd32
push str.Can_not_allocate_memory
push ebx
call fcn.00403450
add esp, 0x10
push 0
push 0
push 0x10
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
cmp dword [0x421868], eax
jl 0x4012bb
mov dword [0x421868], eax
mov ecx, 0x1b0
lea esi, [esp + 0x10]
mov edi, 0x4211a8
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi + 0x41f058]
mov ecx, dword [esi + 0x41f05c]
mov edx, dword [esi + 0x41f054]
push 0x42bf20
push eax
mov eax, dword [esi + 0x41f050]
push ecx
push edx
push eax
push str.SOFTWARETFTPD32DHCP
call fcn.00404560
add esi, 0x10
add esp, 0x18
cmp esi, 0x80
jb 0x4012d0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 1
mov edi, 0x421344
mov ebp, 0xa
mov edi, edi
push esi
push str.AddOptionNumber
lea ecx, [esp + 0x750]
push str._s_d
push ecx
call ebx
push 0x42bf20
push 4
push 4
lea edx, [edi - 4]
push edx
lea eax, [esp + 0x768]
push eax
push str.SOFTWARETFTPD32DHCP
call fcn.00404560
push esi
push str.AddOptionValue
lea ecx, [esp + 0x778]
push str._s_d
push ecx
call ebx
push 0x42bf20
push 1
push 0x80
push edi
lea edx, [esp + 0x790]
push edx
push str.SOFTWARETFTPD32DHCP
call fcn.00404560
add esp, 0x50
add esi, 1
add edi, 0x84
sub ebp, 1
jne 0x401320
mov eax, 1
jmp 0x4013a2
xor eax, eax
mov ecx, dword [esp + 0x7c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c6d6
add esp, 0x7bc
ret