Function at 0x40a770
Capabilities:
Create udp socket
Reference 114dns dns server
Reference google public dns server

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9c41
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x4f600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0
mov ecx, 0x4fb608
mov eax, dword [0x4faf70]
mov dword [0x4fb3f4], eax
mov eax, dword [0x4faf80]
mov dword [0x4fbe08], eax
mov eax, dword [0x4faf60]
mov dword [0x4fbe10], eax
mov eax, dword [esi]
mov dword [0x4fb604], eax
lea eax, [esi + 4]
push eax
call fcn.0040c100
mov eax, dword [esi + 0x10]
mov dword [0x4fb614], eax
mov eax, dword [esi + 0x14]
mov dword [0x4fb618], eax
mov eax, dword [edi]
mov dword [0x4fb61c], eax
mov eax, dword [edi + 4]
mov dword [0x4fb620], eax
mov eax, dword [edi + 8]
mov dword [0x4fb624], eax
mov eax, dword [edi + 0xc]
mov dword [0x4fb628], eax
lea eax, [edi + 0x10]
cmp eax, 0x4fb62c
je 0x40a83c
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x4fb62c
call fcn.0040c6b0
lea eax, [edi + 0x28]
mov ecx, 0x4fb644
push eax
call fcn.0040c100
push dword [ebp - 0x38]
mov ecx, 0x4fb650
call fcn.0040adc0
lea eax, [ebx + 0x20]
mov ecx, 0x4fba58
push eax
call fcn.0040cf50
movzx eax, word [0x4fb68a]
mov edx, 2
mov ecx, dword [0x4fb684]
mov word [0x4fbb32], ax
movzx eax, word [0x4fb688]
push 1
mov word [0x4fbb30], dx
mov dword [0x4fbb34], ecx
mov word [0x4fba44], dx
mov dword [0x4fba48], ecx
mov word [0x4fba46], ax
call fcn.0046e290
mov eax, dword [0x4fba34]
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [0x4fba38], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0044b100
test al, al
je 0x40a92b
mov eax, dword [ebp - 0x24]
xor esi, esi
sub eax, dword [ebp - 0x28]
sar eax, 2
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40a92b
nop
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + esi*4]
lea edi, [eax + esi*4]
call fcn.00408eb0
test al, al
je 0x40a925
mov eax, dword [edi]
mov ecx, 0x4fba34
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040b9f0
inc esi
cmp esi, dword [ebp - 0x34]
jb 0x40a900
mov edx, dword [0x4fba34]
mov ecx, dword [0x4fba38]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
cmp edx, ecx
jne 0x40a97d
push str.8.8.8.8
call esi
mov dword [ebp - 0x44], eax
mov ecx, 0x4fba34
lea eax, [ebp - 0x44]
push eax
call fcn.0040b9f0
push str.114.114.114.114
call esi
mov dword [ebp - 0x48], eax
mov ecx, 0x4fba34
lea eax, [ebp - 0x48]
push eax
call fcn.0040b9f0
mov ecx, dword [0x4fba38]
mov edx, dword [0x4fba34]
mov eax, ecx
mov dword [0x4fc14c], 0x10000e0
sub eax, edx
mov dword [0x4fc150], 0x20000e0
sar eax, 2
mov esi, 0x4e190c
mov edi, 5
mov ecx, dword [esi]
mov edx, 0x459a30
push esi
call fcn.00459a60
add esp, 4
add esi, 8
sub edi, 1
jne 0x40a9a2
call fcn.004634b0
sub esp, 0x10
mov dword [0x4fc044], eax
mov edx, 0x4fb604
mov ecx, 0x4fb3f8
push 0x4fb618
push 0x4fb614
call fcn.00459350
add esp, 0x18
push 0x4fb608
push dword [0x4fb618]
push 0x4fb3f8
call fcn.0040b830
cmp dword [0x4fbe14], edi
mov edi, dword [sym.imp.WINMM.dll_timeSetEvent]
jne 0x40aa20
push 1
push 0x4fb070
push 0x40b810
push 0
push 0xea60
call edi
mov dword [0x4fbe14], eax
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.0040ce60
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
push 0x4fb644
push 0x4fb62c
push 0x4fb71c
push 0x4fb7a8
push dword [0x4fb620]
mov ecx, 0x4fb7c8
push dword [0x4fb61c]
call fcn.00435900
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x40aa9c
nop
lea ecx, [eax + 0x10]
lea eax, [ecx + 0x18]
push eax
push ecx
call fcn.0040e820
lea ecx, [ebp - 0x2c]
call fcn.0040c370
mov eax, dword [ebp - 0x2c]
cmp eax, esi
jne 0x40aa80
cmp dword [0x4fbd34], 0
movzx eax, word [0x4fb7c4]
mov ecx, dword [0x4fb7c0]
jne 0x40ab15
mov edx, 2
xorps xmm0, xmm0
push 0x11
movups xmmword [0x4fbd38], xmm0
push edx
movlpd qword [0x4fbd20], xmm0
push edx
movlpd qword [0x4fbd28], xmm0
movups xmmword [ebp - 0x5c], xmm0
mov word [0x4fbd38], dx
mov dword [0x4fbd3c], ecx
mov word [0x4fbd3a], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x4fbd34], eax
test eax, eax
je 0x40ab15
push 1
push 0x4fb070
push 0x40b6f0
push 0
push 0x3e8
call edi
mov dword [0x4fbd30], eax
cmp dword [0x4fbe0c], 0
jne 0x40ab38
push 1
push 0x4fb070
push 0x40b7f0
push 0
push 0x190
call edi
mov dword [0x4fbe0c], eax
mov cl, 0x40
call fcn.0045ce60
test eax, eax
je 0x40ab4b
mov byte [eax + 0x14], 0
mov byte [eax + 0x2c], 0
mov ecx, eax
mov dword [0x4fba80], eax
call fcn.0045c0d0
mov ecx, dword [0x4fba80]
mov al, byte [0x4fb5fe]
inc al
push ecx
mov byte [ecx + 0x30], al
mov ecx, dword [0x4fba80]
call fcn.0045c200
add esp, 4
mov dword [0x4fba84], eax
test eax, eax
je 0x40ab9c
mov dword [eax + 0x38], 0x4fb070
mov eax, dword [0x4fba84]
test eax, eax
je 0x40ab9c
cmp dword [eax + 0x3c], 1
jne 0x40ab9c
mov dword [eax + 0x48], 0x415b80
mov ecx, 0x4fbb58
call fcn.0040a220
test al, al
je 0x40ac05
push 0x4fbb58
mov ecx, 0x4fbb5c
call fcn.00409e10
test al, al
je 0x40ac05
mov eax, dword [ebp - 0x38]
add eax, 0x5c
mov dword [0x4fbb74], 0x4fb070
cmp dword [eax + 0x14], 0x10
jb 0x40abd5
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 1
push 0x4fbb58
push 0x40a5d0
push 0
push 0x1388
mov dword [0x4fbc10], eax
mov dword [0x4fbba8], 0
call edi
mov dword [0x4fbc14], eax
push 0x11
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, 0x4fbb58
call fcn.0040a380
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, 0x4fbb58
call fcn.0040a380
mov ecx, 0x4fb374
call fcn.004093f0
call fcn.0040f3d0
test al, al
je 0x40ac5d
movzx eax, byte [0x4fb7c6]
mov ecx, 0x4fb074
push eax
movzx eax, word [0x4fb68c]
push 0x4fb690
push eax
push dword [0x4fb684]
call fcn.004025f0
mov esi, dword [0x4fb624]
test esi, esi
je 0x40acd2
shl esi, 0xa
cmp byte [0x4fbe18], 0
jne 0x40acd2
test esi, esi
jle 0x40acd2
push 0x4fbe1c
mov dword [ebp - 0x3c], 0x4fbe1c
call fcn.0046903e
add esp, 4
test eax, eax
je 0x40ac98
push eax
call fcn.004689d6
add esp, 4
cmp byte [0x4fbe18], 0
jne 0x40acca
mov dword [0x4fbe4c], esi
mov dword [0x4fbe50], esi
mov dword [0x4fbe54], esi
call fcn.00409de0
mov dword [0x4fbe58], eax
mov dword [0x4fbe5c], edx
mov byte [0x4fbe18], 1
lea ecx, [ebp - 0x3c]
call fcn.00404a10
mov esi, dword [0x4fb628]
test esi, esi
je 0x40ad47
shl esi, 0xa
cmp byte [0x4fbe60], 0
jne 0x40ad47
test esi, esi
jle 0x40ad47
push 0x4fbe64
mov dword [ebp - 0x34], 0x4fbe64
call fcn.0046903e
add esp, 4
test eax, eax
je 0x40ad0d
push eax
call fcn.004689d6
add esp, 4
cmp byte [0x4fbe60], 0
jne 0x40ad3f
mov dword [0x4fbe94], esi
mov dword [0x4fbe98], esi
mov dword [0x4fbe9c], esi
call fcn.00409de0
mov dword [0x4fbea0], eax
mov dword [0x4fbea4], edx
mov byte [0x4fbe60], 1
lea ecx, [ebp - 0x34]
call fcn.00404a10
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
mov byte [0x4fb3f0], 1
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040c3c0
push dword [ebp - 0x1c]
call fcn.004677cb
mov ecx, dword [ebp - 0x28]
add esp, 4
test ecx, ecx
je 0x40ad81
mov eax, dword [ebp - 0x20]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00405a60
mov dword [ebp - 4], 3
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x40ada0
mov edx, dword [ecx]
lea eax, [ebx + 0x20]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00467552
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x40