Function at 0x451200
Capabilities:
Reference 114dns dns server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59c3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x61e810]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x61e810]
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.00463bf0
mov dword [esp + 0x48], eax
mov byte [esp + 0x88], 3
mov eax, dword [edi + 0x3c]
xor esi, esi
cmp eax, ebx
jne 0x451302
cmp byte [edi + 0x20], bl
jne 0x4513d4
mov dword [esp + 0x14], str.114.114.114.114
cmp esi, ebx
jne 0x4513d4
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
cmp eax, ebx
je 0x4513d4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [edi + 0x18], 0x10
lea ecx, [edi + 4]
jb 0x4512d8
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.004639d0
add dword [esp + 0x14], 4
mov esi, eax
cmp byte [edi + 0x20], bl
je 0x4512b0
jmp 0x4513d4
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.00447180
xor ebx, ebx
cmp byte [edi + 0x20], bl
jne 0x4513a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
test esi, esi
jne 0x4513a0
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 0x4513a0
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 0x451371
mov eax, dword [eax]
cmp dword [ecx + 0x14], edx
jb 0x451378
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.004639d0
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x451331
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4513d2
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x38]
push edx
push ecx
push eax
call fcn.004479b0
mov edx, dword [esp + 0x38]
push edx
call fcn.0048a131
add esp, 0x14
xor ebx, ebx
mov al, byte [edi + 0x20]
cmp al, bl
jne 0x45158b
cmp esi, ebx
jne 0x451489
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.00451630
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x451422
push eax
call fcn.0048b5cf
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x451448
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x48]
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 0x45146e
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 + 0x70], 0x10
jb 0x451482
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0048a131
add esp, 4
xor al, al
jmp 0x451604
cmp al, bl
jne 0x45158b
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], ebx
jae 0x4514a4
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 0x45151d
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
jmp 0x4514d4
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x6c], ebx
jbe 0x4514f6
push 0x6089d8
call fcn.0048b5e0
add esp, 4
push eax
push 0x6089d8
lea ecx, [esp + 0x64]
call fcn.0040f618
cmp dword [esi + 0x14], 0x10
jb 0x4514fe
mov esi, dword [esi]
push esi
call fcn.0048b5e0
add esp, 4
push eax
push esi
lea ecx, [esp + 0x64]
call fcn.0040f618
add dword [esp + 0x14], 0x1c
dec dword [esp + 0x10]
jne 0x4514d0
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.004516d0
add esp, 0x14
push eax
push 0x459f10
mov byte [esp + 0x90], 5
call fcn.00450920
mov byte [esp + 0x90], 3
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
je 0x45158b
add eax, 4
mov ecx, eax
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x45158b
cmp eax, ebx
je 0x45158b
lea ecx, [eax - 4]
cmp ecx, ebx
je 0x45158b
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 0x4515a2
push eax
call fcn.0048b5cf
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x4515c8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
call fcn.004479b0
push esi
call fcn.0048a131
add esp, 0x14
mov esi, dword [esp + 0x18]
cmp esi, ebx
je 0x4515ee
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 + 0x70], 0x10
jb 0x451602
mov eax, dword [esp + 0x5c]
push eax
call fcn.0048a131
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.00489dc1
mov esp, ebp
pop ebp
ret