Function at 0x468b50
Capabilities:
Reference 114dns dns server
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59c16a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x80], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea esi, [esp + 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x50], ebx
call fcn.00463bf0
mov dword [esp + 0x40], eax
mov byte [esp + 0x80], 3
xor eax, eax
cmp dword [edi + 0x4c], ebx
jne 0x468cf2
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x468c3d
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, 0x628270
test eax, eax
jne 0x468c3b
mov ecx, dword [esi]
test ecx, ecx
je 0x468c3b
push ecx
call ebx
cmp dword [edi + 0x34], 0x10
lea ecx, [edi + 0x20]
jb 0x468c18
mov ecx, dword [ecx]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x50]
call fcn.004639d0
mov cl, byte [edi + 0xc]
add esi, 4
test cl, cl
je 0x468c00
xor ebx, ebx
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x468d33
cmp eax, ebx
jne 0x468d33
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
lea edx, [edi + 0x58]
push eax
mov dword [esp + 0x48], 0xffffffff
call fcn.00451630
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x468c8b
push eax
call fcn.0048b5cf
add esp, 4
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x468cb1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
push esi
call fcn.004479b0
push esi
call fcn.0048a131
add esp, 0x14
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x468cd7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.004479b0
push esi
call fcn.0048a131
add esp, 0x14
cmp dword [esp + 0x68], 0x10
jb 0x468ceb
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0048a131
add esp, 4
xor al, al
jmp 0x468eb4
mov edx, 0x10
cmp dword [edi + 0x34], edx
jb 0x468d01
mov ecx, dword [edi + 0x20]
jmp 0x468d04
lea ecx, [edi + 0x20]
cmp dword [edi + 0x50], edx
lea eax, [edi + 0x3c]
jb 0x468d0e
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x2c]
push edx
push ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x50]
call fcn.004639d0
jmp 0x468c3d
mov dl, byte [edi + 0xc]
test dl, dl
jne 0x468e3b
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], ebx
jae 0x468d51
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [eax], 0
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x468dcb
mov ebx, esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x64], 0
jbe 0x468d9c
push 0x6089d8
call fcn.0048b5e0
add esp, 4
push eax
push 0x6089d8
lea ecx, [esp + 0x5c]
call fcn.0040f618
cmp dword [ebx + 0x14], 0x10
jb 0x468da6
mov esi, dword [ebx]
jmp 0x468da8
mov esi, ebx
push esi
call fcn.0048b5e0
add esp, 4
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0040f618
add ebx, 0x1c
dec dword [esp + 0x14]
jne 0x468d79
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [edi + 0x1c]
lea edx, [esp + 0x54]
push edx
lea ecx, [edi + 0x20]
push ecx
mov ecx, dword [edi + 0x58]
push ecx
lea edx, [esp + 0x44]
push edx
push eax
lea edi, [esp + 0x24]
mov dword [esp + 0x4c], ebx
call fcn.004516d0
add esp, 0x14
push eax
push 0x459f10
mov byte [esp + 0x88], 4
call fcn.00450920
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x468e3f
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x468e3f
cmp eax, ebx
je 0x468e3f
lea ecx, [eax - 4]
cmp ecx, ebx
je 0x468e3f
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
jmp 0x468e3f
mov esi, dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x468e56
push eax
call fcn.0048b5cf
add esp, 4
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x468e7c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.004479b0
push edi
call fcn.0048a131
add esp, 0x14
cmp esi, ebx
je 0x468e9e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
call fcn.004479b0
push esi
call fcn.0048a131
add esp, 0x14
cmp dword [esp + 0x68], 0x10
jb 0x468eb2
mov eax, dword [esp + 0x54]
push eax
call fcn.0048a131
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00489dc1
mov esp, ebp
pop ebp
ret