Function at 0x405bc0
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 0x4c05f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
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 edi, ecx
mov dword [ebp - 4], 0
mov eax, str.A
mov esi, dword [ebx + 8]
mov edx, str.AAAA
mov dword [ebp - 0x5c], esi
mov cl, byte [esi]
test cl, cl
cmove eax, edx
mov dword [ebp - 0x58], eax
je 0x405c2e
mov edx, dword [edi + 0xa8]
mov dword [ebp - 0x48], edx
jmp 0x405c37
mov eax, dword [edi + 0xac]
mov dword [ebp - 0x48], 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 0x405c58
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 - 0x4c], eax
lea ecx, [esi + 0x14]
movzx eax, byte [esi]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], ecx
push eax
call fcn.00406a30
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x34]
inc eax
push eax
call fcn.00472c3c
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x44]
add esp, 4
mov esi, eax
cmp dword [ebp - 0x30], 0xf
cmova edx, dword [ebp - 0x44]
inc ecx
push ecx
push edx
push esi
call fcn.0049d000
add esp, 0xc
push 8
call fcn.00472c3c
add esp, 4
mov dword [eax], edi
push 0
push eax
push 0x4068a0
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 0x405cf3
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 - 0x44]
push eax
mov ecx, edi
call fcn.00406b00
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push 1
push dword [ebp - 0x4c]
movq qword [ebp - 0x2c], xmm0
mov dx, word [esi]
call fcn.004149f0
add esp, 8
push 0x10
mov byte [ebp - 4], 2
lea eax, [edi + 0x238]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
sub edx, ecx
push eax
push 0
push edx
push ecx
push dword [ebp - 0x48]
call dword [sym.imp.WS2_32.dll_sendto]
call fcn.00459f00
xorps xmm0, xmm0
mov dword [ebp - 0x54], edx
push 1
push dword [ebp - 0x4c]
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov dx, word [esi]
mov dword [ebp - 0x48], eax
call fcn.004149f0
add esp, 8
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, ecx
je 0x405ed2
push 0x48
call fcn.00472c0c
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 - 0x50]
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 - 0x44]
mov dword [ebp - 0x4c], edx
cmp ecx, eax
je 0x405e13
cmp dword [ebp - 0x30], 0xf
push dword [ebp - 0x34]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.00407620
mov edx, dword [ebp - 0x4c]
movups xmm0, xmmword [edi + 0x248]
mov eax, dword [ebp - 0x5c]
movups xmmword [edx + 0x2c], xmm0
mov al, byte [eax]
mov byte [edx + 0x20], al
mov eax, dword [ebp - 0x48]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x54]
mov dword [edx + 0x28], eax
lea eax, [ebp - 0x20]
cmp esi, eax
je 0x405e5b
mov ecx, dword [esi]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 8]
mov dword [esi + 8], eax
mov dword [ebp - 0x18], ecx
push 0
push edx
push 0x4067c0
push 0
push 0x1f4
call dword [sym.imp.WINMM.dll_timeSetEvent]
test eax, eax
jne 0x405ecf
push dword [ebp - 0x50]
lea edx, [ebp - 0x58]
push 0x6b
push str._WINTUN__2__DNS__DnsResolver____qid:_4x__handleRequestToNode_
lea ecx, [ebp - 0x74]
call fcn.00408a50
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x405e94
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x405ecf
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ec5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405feb
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x405f18
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405ef9
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ff0
push edx
push ecx
call fcn.00472bfe
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x405f61
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405f42
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ff0
push edx
push ecx
call fcn.00472bfe
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x405f91
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405f87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405ff0
push ecx
push edx
call fcn.00472bfe
add esp, 8
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test esi, esi
je 0x405fcb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405fcb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x405fcb
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.0047299a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004a074e
call fcn.004a074e
int3