Function at 0x450900
Capabilities:
Reference 114dns dns server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59e342
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x621810]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x88], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
lea esi, [esp + 0x48]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x58], ebx
call fcn.00464a40
mov dword [esp + 0x48], eax
mov byte [esp + 0x88], 3
mov eax, dword [edi + 0x3c]
xor esi, esi
cmp eax, ebx
jne 0x450a02
cmp byte [edi + 0x20], bl
jne 0x450ad4
mov dword [esp + 0x14], str.114.114.114.114
cmp esi, ebx
jne 0x450ad4
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x450ad4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [edi + 0x18], 0x10
lea ecx, [edi + 4]
jb 0x4509d8
mov ecx, dword [ecx]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x58]
call fcn.00464820
add dword [esp + 0x14], 4
mov esi, eax
cmp byte [edi + 0x20], bl
je 0x4509b0
jmp 0x450ad4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ebx, [edi + 0x2c]
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 4
call fcn.00446220
xor ebx, ebx
cmp byte [edi + 0x20], bl
jne 0x450aa0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x450aa0
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jae 0x450aa0
mov eax, dword [esp + 0x14]
mov ecx, eax
add eax, 0x1c
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
mov edx, 0x10
inc ebx
cmp dword [eax + 0x14], edx
jb 0x450a71
mov eax, dword [eax]
cmp dword [ecx + 0x14], edx
jb 0x450a78
mov ecx, dword [ecx]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x58]
call fcn.00464820
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x450a31
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x450ad2
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.00446d60
mov edx, dword [esp + 0x38]
push edx
call fcn.0048bcc1
add esp, 0x14
xor ebx, ebx
mov al, byte [edi + 0x20]
cmp al, bl
jne 0x450c8b
cmp esi, ebx
jne 0x450b89
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x14]
push eax
mov eax, dword [edi + 0x24]
lea ecx, [edi + 4]
lea edx, [edi + 0x28]
push eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00450d30
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x450b22
push eax
call fcn.0048d15f
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x450b48
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
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 0x450b6e
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 + 0x70], 0x10
jb 0x450b82
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0048bcc1
add esp, 4
xor al, al
jmp 0x450d04
cmp al, bl
jne 0x450c8b
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebx
jae 0x450ba4
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [eax], bl
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x450c1d
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jmp 0x450bd4
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x6c], ebx
jbe 0x450bf6
push 0x60a930
call fcn.0048d170
add esp, 4
push eax
push 0x60a930
lea ecx, [esp + 0x64]
call fcn.0040e75b
cmp dword [esi + 0x14], 0x10
jb 0x450bfe
mov esi, dword [esi]
push esi
call fcn.0048d170
add esp, 4
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.0040e75b
add dword [esp + 0x14], 0x1c
dec dword [esp + 0x10]
jne 0x450bd0
mov eax, dword [edi + 0x24]
lea edx, [esp + 0x5c]
push edx
lea ecx, [edi + 4]
push ecx
mov ecx, dword [edi + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
call fcn.00450dd0
add esp, 0x14
push eax
push 0x468880
mov byte [esp + 0x90], 5
call fcn.00450020
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x450c8b
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x450c8b
cmp eax, ebx
je 0x450c8b
lea ecx, [eax - 4]
cmp ecx, ebx
je 0x450c8b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x450ca2
push eax
call fcn.0048d15f
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x450cc8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
call fcn.00446d60
push esi
call fcn.0048bcc1
add esp, 0x14
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x450cee
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 + 0x70], 0x10
jb 0x450d02
mov eax, dword [esp + 0x5c]
push eax
call fcn.0048bcc1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0048b951
mov esp, ebp
pop ebp
ret