Function at 0x406160
Capabilities:
Print debug messages
Send data
Send data on socket

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 0x5b8e68
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x624040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, str.A
mov esi, dword [ebx + 8]
mov edx, str.AAAA
mov dword [ebp - 0x6c], esi
mov cl, byte [esi]
test cl, cl
cmove eax, edx
mov dword [ebp - 0x68], eax
je 0x4061ce
mov edx, dword [edi + 0xa8]
mov dword [ebp - 0x1c], edx
jmp 0x4061d7
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
sub esp, 8
mov ecx, esp
mov edx, dword [eax]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4061f8
lock inc dword [eax + 4]
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 4], eax
mov ecx, edi
call edx
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x60], eax
lea ecx, [esi + 0x14]
movzx eax, byte [esi]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x64], ecx
push eax
call fcn.004070b0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x4c]
inc eax
push eax
call fcn.0048339c
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x5c]
add esp, 4
mov esi, eax
cmp dword [ebp - 0x48], 0xf
cmova edx, dword [ebp - 0x5c]
inc ecx
push ecx
push edx
push esi
call fcn.00591d00
add esp, 0xc
push 8
call fcn.0048339c
add esp, 4
mov dword [eax], edi
push 0
push eax
push 0x406f20
push 0
push 0xbb8
mov dword [eax + 4], esi
call dword [sym.imp.WINMM.dll_timeSetEvent]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x406293
lock inc dword [eax + 4]
mov eax, dword [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 0xc]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.00407180
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
push 1
push dword [ebp - 0x60]
movq qword [ebp - 0x44], xmm0
mov dx, word [esi]
call fcn.00415430
add esp, 8
push 0x10
mov byte [ebp - 4], 2
lea eax, [edi + 0x238]
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
sub edx, ecx
push eax
push 0
push edx
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x406330
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x406330
push 0
push 0x3e8
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.005b83b0
push edx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.005b83b0
mov dword [ebp - 0x34], edx
jmp 0x406341
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push 1
push dword [ebp - 0x60]
movq qword [ebp - 0x2c], xmm0
lea ecx, [ebp - 0x2c]
mov dx, word [esi]
mov dword [ebp - 0x1c], eax
call fcn.00415430
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
je 0x4064c1
push 0x48
call fcn.0048336c
mov edx, eax
xorps xmm0, xmm0
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], 0
lea ecx, [edx + 8]
mov dword [ecx + 0x14], 0xf
lea esi, [edx + 0x3c]
mov byte [ecx], 0
xor eax, eax
mov dword [esi], 0
add esp, 4
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov word [edx + 4], ax
mov eax, dword [ebp - 0x64]
mov byte [edx + 0x20], 1
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
movups xmmword [edx + 0x2c], xmm0
mov dword [edx], edi
mov ax, word [eax]
mov word [edx + 4], ax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x60], edx
cmp ecx, eax
je 0x4063fc
cmp dword [ebp - 0x48], 0xf
push dword [ebp - 0x4c]
cmova eax, dword [ebp - 0x5c]
push eax
call fcn.00407990
mov edx, dword [ebp - 0x60]
movups xmm0, xmmword [edi + 0x248]
mov eax, dword [ebp - 0x6c]
movups xmmword [edx + 0x2c], xmm0
mov al, byte [eax]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [edx + 0x28], eax
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x406444
mov ecx, dword [esi]
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [ebp - 0x24], ecx
push 0
push edx
push 0x406e10
push 0
push 0x1f4
call dword [sym.imp.WINMM.dll_timeSetEvent]
test eax, eax
jne 0x4064be
push dword [ebp - 0x64]
lea edx, [ebp - 0x68]
push 0x6b
push str._WINTUN__2__DNS__DnsResolver____qid:_4x__handleRequestToNode_
lea ecx, [ebp - 0x84]
call fcn.004092c0
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x406480
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x70]
cmp ecx, 0xf
jbe 0x4064be
mov edx, dword [ebp - 0x84]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4064b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4065da
push ecx
push edx
call fcn.0048335e
add esp, 8
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x406507
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4064e8
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4065df
push edx
push ecx
call fcn.0048335e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x406550
mov edx, dword [ebp - 0x3c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406531
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4065df
push edx
push ecx
call fcn.0048335e
add esp, 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x48]
cmp ecx, 0xf
jbe 0x406580
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406576
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4065df
push ecx
push edx
call fcn.0048335e
add esp, 8
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
test esi, esi
je 0x4065ba
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4065ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4065ba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
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.004830fa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0059539e
call fcn.0059539e
int3