Function at 0x405ac0
Capabilities:
Reference 114dns dns server
Reference alidns dns server

Disassembly:
push 0xffffffffffffffff
push 0x43f2d9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x24], ebx
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
mov ecx, dword [esp + 0x68]
add eax, 0x10
mov dword [ecx], eax
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x60], ebx
mov esi, 1
push edx
mov dword [esp + 0x28], esi
call fcn.00405d10
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], str.114.114.114.114
mov dword [esp + 0x2c], str.223.5.5.5
xor ebp, ebp
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x60], 2
mov ecx, dword [esp + ebp*4 + 0x28]
cmp ecx, ebx
jne 0x405b61
xor eax, eax
jmp 0x405b6f
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x405b66
sub eax, esi
mov edi, eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00403d00
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x30]
push eax
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], ebx
call fcn.00405780
mov ecx, dword [esp + 0x28]
add esp, 8
shr ecx, 2
cmp eax, ebx
je 0x405ba8
cmp ecx, ebx
jg 0x405c19
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 1
mov edi, dword [eax]
cmp dword [eax + 4], ebx
je 0x405bf1
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x405bcf
cmp dword [esi - 8], ebx
jl 0x405c94
mov dword [esi - 0xc], ebx
mov byte [esi], bl
jmp 0x405bf1
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405be5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea esi, [eax + 0x10]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c0d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, 2
jb 0x405b3a
jmp 0x405c74
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
cmp eax, ebx
jne 0x405c2c
xor ecx, ecx
jmp 0x405c3a
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x405c31
sub ecx, esi
push eax
mov eax, dword [esp + 0x6c]
mov edi, ecx
call fcn.00403d00
lea esi, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.00403ac0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405c74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], bl
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0x10]
je 0x405cd3
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x405cad
cmp dword [ecx - 8], ebx
jge 0x405c9e
push 0x80070057
call fcn.00401960
mov dword [ecx - 0xc], ebx
mov ecx, dword [esp + 0x1c]
mov byte [ecx], bl
mov ecx, dword [esp + 0x1c]
jmp 0x405cd3
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405cef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret