Function at 0x40d1c0
Capabilities:
Reference 114dns dns server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
call fcn.00401ff0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40d22b
push 2
movzx eax, byte [0x623359]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x40d22b
mov ecx, dword [ebp - 0x20]
add ecx, 0xc
call fcn.00403210
push eax
push str.Need_to_resolve___s__n
push 0xf8
push 0x5ef038
push 2
movzx edx, byte [0x623359]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x40d1c9
push 0x8000
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x2c]
push eax
call fcn.0058a970
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x30]
push eax
call fcn.00589ae0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40d2d9
call fcn.00401ff0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40d2be
push 2
movzx ecx, byte [0x623359]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0xc]
call edx
movzx eax, al
test eax, eax
je 0x40d2be
push str.Get_nsserver_from_system_failed._Use_114Dns_n
push 0x100
push 0x5ef080
push 2
movzx ecx, byte [0x623359]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0x10]
call edx
add esp, 0x18
xor eax, eax
jne 0x40d268
push str.114.114.114.114
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x30]
push edx
call fcn.005893c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x40d384
call fcn.00401ff0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40d339
push 2
movzx eax, byte [0x623359]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x40d339
push str.Couldnt_configure_nameservers
push 0x105
push 0x5ef0c8
push 2
movzx edx, byte [0x623359]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
xor ecx, ecx
jne 0x40d2e3
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x30], 0
je 0x40d361
push 1
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.0058a080
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x30], 0
push 0xa
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [edx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x20]
push edx
push 0x40cee0
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 0xc
call fcn.00403210
push eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.00588d60
add esp, 0x14
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x20]
push eax
push 0x40d460
push 1
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x2c]
push edx
call fcn.00581f30
add esp, 0x14
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x38], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0xc], 0xa
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x38]
push edx
call fcn.005840c0
add esp, 8
call fcn.00401ff0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40d456
push 2
movzx eax, byte [0x623359]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x40d456
push str.Set_timeout_for_dns_n
push 0x116
push 0x5ef0f8
push 2
movzx edx, byte [0x623359]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
xor ecx, ecx
jne 0x40d400
mov esp, ebp
pop ebp
ret