Function at 0x4168c0
Capabilities:
Create thread
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 0x4c0fa0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x501040]
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 + 0x18]
mov edi, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], edi
mov eax, dword [ebx + 8]
mov ecx, 0x504fb0
mov dword [ebp - 4], 0
mov dword [0x504d9c], eax
mov eax, dword [ebx + 0xc]
mov dword [0x505aa4], eax
mov eax, dword [ebx + 0x10]
mov dword [0x505aac], eax
mov eax, dword [esi]
mov dword [0x504fac], eax
lea eax, [esi + 4]
push eax
call fcn.004185a0
mov eax, dword [esi + 0x10]
mov dword [0x504fbc], eax
mov eax, dword [esi + 0x14]
mov esi, dword [ebp - 0x18]
mov dword [0x504fc0], eax
mov eax, dword [esi]
mov dword [0x504fc4], eax
mov eax, dword [esi + 4]
mov dword [0x504fc8], eax
mov eax, dword [esi + 8]
mov dword [0x504fcc], eax
mov eax, dword [esi + 0xc]
mov dword [0x504fd0], eax
lea eax, [esi + 0x10]
cmp eax, 0x504fd4
je 0x416994
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x416988
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x504fd4
call fcn.00418760
lea eax, [esi + 0x28]
mov ecx, 0x504fec
push eax
call fcn.004185a0
lea eax, [esi + 0x34]
mov ecx, 0x504ff8
push eax
call fcn.004184f0
lea eax, [esi + 0x3c]
mov ecx, 0x505000
push eax
call fcn.004184f0
lea eax, [esi + 0x44]
mov ecx, 0x505008
push eax
call fcn.004184f0
cmp edi, 0x505010
je 0x4169ec
cmp dword [edi + 0x14], 0xf
mov eax, edi
jbe 0x4169de
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, 0x505010
push eax
call fcn.00407620
lea eax, [edi + 0x18]
cmp eax, 0x505028
je 0x416a0d
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x416a01
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x505028
call fcn.00407620
mov eax, dword [edi + 0x30]
mov ecx, 0x505050
mov dword [0x505040], eax
mov eax, dword [edi + 0x34]
mov dword [0x505044], eax
movzx eax, word [edi + 0x38]
mov word [0x505048], ax
movzx eax, word [edi + 0x3a]
mov word [0x50504a], ax
movzx eax, word [edi + 0x3c]
mov word [0x50504c], ax
lea eax, [edi + 0x40]
push eax
call fcn.00404fd0
lea eax, [edi + 0xcc]
mov ecx, 0x5050dc
push eax
call fcn.00404fd0
lea eax, [edi + 0x158]
cmp eax, 0x505168
je 0x416a7e
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x416a72
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x505168
call fcn.00407620
mov eax, dword [edi + 0x170]
mov ecx, 0x5056f0
mov dword [0x505180], eax
movzx eax, word [edi + 0x174]
mov word [0x505184], ax
mov al, byte [edi + 0x176]
mov byte [0x505186], al
mov eax, dword [edi + 0x178]
mov dword [0x505188], eax
lea eax, [ebx + 0x20]
push eax
call fcn.004181f0
movzx eax, word [0x50504a]
mov edx, 2
mov ecx, dword [0x505044]
mov word [0x5057ca], ax
movzx eax, word [0x505048]
push 1
mov word [0x5057c8], dx
mov dword [0x5057cc], ecx
mov word [0x5056e0], dx
mov dword [0x5056e4], ecx
mov word [0x5056e2], ax
call fcn.00478a40
mov eax, dword [0x5056d0]
add esp, 4
cmp eax, dword [0x5056d4]
je 0x416b15
mov dword [0x5056d4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 1
push 6
mov dword [ebp - 0x44], 4
call dword [sym.imp.DNSAPI.dll_DnsQueryConfig]
test eax, eax
je 0x416b97
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418030
jmp 0x416d19
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x416baf
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418030
jmp 0x416d19
mov eax, dword [ecx]
test eax, eax
jne 0x416bcd
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418030
jmp 0x416d19
xor esi, esi
test eax, eax
je 0x416c07
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ecx + esi*4 + 4]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [ebp - 0x28]
je 0x416bef
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
jmp 0x416bff
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00419950
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
inc esi
cmp esi, dword [ecx]
jb 0x416bd6
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
cmp esi, edi
je 0x416c4e
mov eax, dword [ebp - 0x20]
nop dword [eax + eax]
mov ecx, dword [esi]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [ebp - 0x1c]
je 0x416c37
mov dword [eax], ecx
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x20], eax
jmp 0x416c47
lea ecx, [ebp - 0x4c]
push ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.004197f0
mov eax, dword [ebp - 0x20]
add esi, 4
cmp esi, edi
jne 0x416c20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00418030
mov eax, dword [ebp - 0x20]
xor esi, esi
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x416d19
nop
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
mov edx, dword [ecx + esi*4]
mov ecx, str.www.baidu.com
push eax
sub esp, 8
call fcn.004154f0
add esp, 0xc
test al, al
je 0x416cf9
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
je 0x416cf9
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004075b0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + esi*4]
mov eax, dword [0x5056d4]
mov dword [ebp - 0x4c], ecx
cmp eax, dword [0x5056d8]
je 0x416ce8
mov dword [eax], ecx
add dword [0x5056d4], 4
jmp 0x416d05
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov ecx, 0x5056d0
call fcn.00419950
jmp 0x416d05
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004075b0
mov eax, dword [ebp - 0x20]
inc esi
mov ecx, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x416c70
mov eax, dword [0x5056d0]
cmp eax, dword [0x5056d4]
jne 0x416d90
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.8.8.8.8
call esi
mov ecx, dword [0x5056d4]
mov dword [ebp - 0x4c], eax
cmp ecx, dword [0x5056d8]
je 0x416d4f
mov dword [ecx], eax
add dword [0x5056d4], 4
jmp 0x416d5e
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, 0x5056d0
call fcn.00419950
push str.114.114.114.114
call esi
mov ecx, dword [0x5056d4]
mov dword [ebp - 0x4c], eax
cmp ecx, dword [0x5056d8]
je 0x416d81
mov dword [ecx], eax
add dword [0x5056d4], 4
jmp 0x416d90
lea eax, [ebp - 0x4c]
push eax
push ecx
mov ecx, 0x5056d0
call fcn.00419950
mov dword [0x505c90], 0x10000e0
mov esi, 0x4ef2e0
mov dword [0x505c94], 0x20000e0
mov edi, 5
nop
mov ecx, dword [esi]
mov edx, 0x464200
push esi
call fcn.00464230
add esp, 4
add esi, 8
sub edi, 1
jne 0x416db0
call fcn.0046df00
sub esp, 0x10
mov dword [0x505b88], eax
mov edx, 0x504fac
mov ecx, 0x504da0
push 0x504fc0
push 0x504fbc
call fcn.00463940
add esp, 0x18
push 0x504fb0
push dword [0x504fc0]
push 0x504da0
call fcn.00417f30
mov esi, dword [sym.imp.WINMM.dll_timeSetEvent]
cmp dword [0x505ab0], edi
jne 0x416e2d
push 1
push 0x504a18
push 0x417f10
push edi
push 0xea60
call esi
mov dword [0x505ab0], eax
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
push 0x30
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00472c0c
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
push ecx
push 0x504fd4
push 0x5050dc
push 0x505168
push 0x505008
push 0x505000
push 0x504ff8
push dword [0x504fc8]
mov ecx, 0x50518c
push dword [0x504fc4]
call fcn.004443f0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x51], 0
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp byte [eax + 0xd], 0
jne 0x416ece
nop dword [eax]
lea ecx, [eax + 0x10]
lea eax, [ecx + 0x18]
push eax
push ecx
call fcn.00419fb0
lea ecx, [ebp - 0x18]
call fcn.004186f0
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xd], 0
je 0x416eb0
cmp dword [0x5059cc], 0
movzx eax, word [0x505184]
mov ecx, dword [0x505180]
jne 0x416f47
mov edx, 2
xorps xmm0, xmm0
push 0x11
movups xmmword [0x5059d0], xmm0
push edx
movlpd qword [0x5059b8], xmm0
push edx
movlpd qword [0x5059c0], xmm0
movups xmmword [ebp - 0x34], xmm0
mov word [0x5059d0], dx
mov dword [0x5059d4], ecx
mov word [0x5059d2], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x5059cc], eax
test eax, eax
je 0x416f47
push 1
push 0x504a18
push 0x417df0
push 0
push 0x3e8
call esi
mov dword [0x5059c8], eax
cmp dword [0x505aa8], 0
jne 0x416f6a
push 1
push 0x504a18
push 0x417ef0
push 0
push 0x190
call esi
mov dword [0x505aa8], eax
push 0x50571c
push 0x505718
call fcn.0041f8c0
mov eax, dword [ebp - 0x40]
sub esp, 0x10
add eax, 0x5c
push eax
push ecx
mov ecx, 0x5057f0
call fcn.004160b0
push 0x11
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, 0x5057f0
call fcn.004163c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
mov ecx, 0x5057f0
call fcn.004163c0
cmp byte [0x504d20], 0
jne 0x417094
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
push 0x504d24
mov dword [ebp - 0x48], 0x504d24
mov byte [ebp - 0x44], 0
call fcn.004745c4
add esp, 4
test eax, eax
jne 0x41727d
mov eax, dword [0x504d50]
cmp eax, 0x7fffffff
jne 0x416ffa
dec eax
mov dword [0x504d50], eax
jmp 0x41728a
mov byte [ebp - 0x44], 1
mov byte [ebp - 4], 5
cmp byte [0x504d20], 0
jne 0x417083
push 8
mov byte [0x504d20], 1
call fcn.00472c0c
add esp, 4
mov dword [ebp - 0x40], eax
mov dword [eax], 0x415930
mov dword [eax + 4], 0x504d1c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
push ecx
push 0
push eax
push 0x40bb40
push 0
push 0
call fcn.004a09bc
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x41726f
mov byte [ebp - 4], 5
cmp dword [0x504d58], 0
mov dword [ebp - 0x40], 0
jne 0x41726a
mov eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x50], xmm0
mov dword [0x504d54], ecx
mov dword [0x504d58], eax
push 0x504d24
mov byte [ebp - 4], 4
call fcn.004745d5
add esp, 4
call fcn.0041a930
test al, al
je 0x4170c2
movzx eax, byte [0x505186]
mov ecx, 0x504a1c
push eax
movzx eax, word [0x50504c]
push 0x505050
push eax
push dword [0x505044]
call fcn.004049a0
mov esi, dword [0x504fcc]
test esi, esi
je 0x417147
shl esi, 0xa
cmp byte [0x505ab8], 0
jne 0x417147
test esi, esi
jle 0x417147
push 0x505abc
call fcn.004745c4
add esp, 4
test eax, eax
jne 0x41727d
mov eax, dword [0x505ae8]
cmp eax, 0x7fffffff
jne 0x417108
dec eax
mov dword [0x505ae8], eax
jmp 0x41728a
cmp byte [0x505ab8], 0
jne 0x41713a
mov dword [0x505aec], esi
mov dword [0x505af0], esi
mov dword [0x505af4], esi
call fcn.00415e80
mov dword [0x505af8], eax
mov dword [0x505afc], edx
mov byte [0x505ab8], 1
push 0x505abc
call fcn.004745d5
add esp, 4
mov esi, dword [0x504fd0]
test esi, esi
je 0x4171c5
shl esi, 0xa
cmp byte [0x505b00], 0
jne 0x4171c5
test esi, esi
jle 0x4171c5
push 0x505b04
call fcn.004745c4
add esp, 4
test eax, eax
jne 0x41727d
mov eax, dword [0x505b30]
cmp eax, 0x7fffffff
je 0x417284
cmp byte [0x505b00], 0
jne 0x4171b8
mov dword [0x505b34], esi
mov dword [0x505b38], esi
mov dword [0x505b3c], esi
call fcn.00415e80
mov dword [0x505b40], eax
mov dword [0x505b44], edx
mov byte [0x505b00], 1
push 0x505b04
call fcn.004745d5
add esp, 4
mov eax, dword [ebp - 0x3c]
mov byte [0x504d98], 1
push dword [eax + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, eax
call fcn.00419560
push 0x30
push dword [ebp - 0x3c]
call fcn.00472bfe
mov edx, dword [ebp - 0x24]
add esp, 8
test edx, edx
je 0x417232
mov ecx, dword [ebp - 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x417213
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417291
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x41724a
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.0047299a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x40
call fcn.004a0a6d
push 6
mov dword [ebp - 0x4c], 0
call fcn.00473f18
push 5
call fcn.00473f18
dec eax
mov dword [0x505b30], eax
push 6
call fcn.00473f18
call fcn.004a074e
int3