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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59e0aa
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
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.00464a40
mov dword [esp + 0x40], eax
mov byte [esp + 0x80], 3
xor eax, eax
cmp dword [edi + 0x4c], ebx
jne 0x469d02
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x469c4d
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, 0x62b274
test eax, eax
jne 0x469c4b
mov ecx, dword [esi]
test ecx, ecx
je 0x469c4b
push ecx
call ebx
cmp dword [edi + 0x34], 0x10
lea ecx, [edi + 0x20]
jb 0x469c28
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.00464820
mov cl, byte [edi + 0xc]
add esi, 4
test cl, cl
je 0x469c10
xor ebx, ebx
mov cl, byte [edi + 0xc]
test cl, cl
jne 0x469d43
cmp eax, ebx
jne 0x469d43
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.00450d30
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x469c9b
push eax
call fcn.0048d15f
add esp, 4
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x469cc1
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
push esi
call fcn.00446d60
push esi
call fcn.0048bcc1
add esp, 0x14
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x469ce7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push esi
call fcn.00446d60
push esi
call fcn.0048bcc1
add esp, 0x14
cmp dword [esp + 0x68], 0x10
jb 0x469cfb
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0048bcc1
add esp, 4
xor al, al
jmp 0x469ec4
mov edx, 0x10
cmp dword [edi + 0x34], edx
jb 0x469d11
mov ecx, dword [edi + 0x20]
jmp 0x469d14
lea ecx, [edi + 0x20]
cmp dword [edi + 0x50], edx
lea eax, [edi + 0x3c]
jb 0x469d1e
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.00464820
jmp 0x469c4d
mov dl, byte [edi + 0xc]
test dl, dl
jne 0x469e4b
cmp dword [esp + 0x68], 0x10
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], ebx
jae 0x469d61
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 0x469ddb
mov ebx, esi
mov dword [esp + 0x14], eax
cmp dword [esp + 0x64], 0
jbe 0x469dac
push 0x60a930
call fcn.0048d170
add esp, 4
push eax
push 0x60a930
lea ecx, [esp + 0x5c]
call fcn.0040e75b
cmp dword [ebx + 0x14], 0x10
jb 0x469db6
mov esi, dword [ebx]
jmp 0x469db8
mov esi, ebx
push esi
call fcn.0048d170
add esp, 4
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0040e75b
add ebx, 0x1c
dec dword [esp + 0x14]
jne 0x469d89
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.00450dd0
add esp, 0x14
push eax
push 0x468880
mov byte [esp + 0x88], 4
call fcn.00450020
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x469e4f
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x469e4f
cmp eax, ebx
je 0x469e4f
lea ecx, [eax - 4]
cmp ecx, ebx
je 0x469e4f
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
jmp 0x469e4f
mov esi, dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x469e66
push eax
call fcn.0048d15f
add esp, 4
mov edi, dword [esp + 0x28]
cmp edi, ebx
je 0x469e8c
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
push edi
call fcn.00446d60
push edi
call fcn.0048bcc1
add esp, 0x14
cmp esi, ebx
je 0x469eae
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
call fcn.00446d60
push esi
call fcn.0048bcc1
add esp, 0x14
cmp dword [esp + 0x68], 0x10
jb 0x469ec2
mov eax, dword [esp + 0x54]
push eax
call fcn.0048bcc1
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.0048b951
mov esp, ebp
pop ebp
ret