Function at 0x406937
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x4c002c]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esi + 0x1108]
push edi
push eax
call fcn.004863d4
or dword [esp + 0x20], 0xffffffff
mov word [esi + 0x1340], ax
mov eax, dword [esi]
movzx eax, word [eax]
pop ecx
push eax
lea eax, [esp + 0x28]
push 0x49b790
push eax
call fcn.0040d74a
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call fcn.0040a67d
mov ebx, eax
pop ecx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x17], 0
movzx ebp, byte [esp + 0x17]
mov edi, dword [0x496520]
imul ebp, ebp, 0x110
movzx eax, word [ebp + 0x4ce098]
test ax, ax
je 0x406b51
cmp word [esi + 0x1340], ax
jne 0x4069d6
lea eax, [ebp + 0x4cdf98]
push eax
lea eax, [esi + 0x1108]
push eax
call dword [0x49655c]
test eax, eax
pop ecx
pop ecx
je 0x406a12
movzx eax, word [esi + 0x1340]
movzx ecx, word [ebp + 0x4ce098]
cmp ax, cx
jbe 0x406a19
movzx eax, ax
movzx ecx, cx
sub eax, ecx
lea eax, [eax + esi + 0x1107]
cmp byte [eax], 0x2e
jne 0x406a19
lea ecx, [ebp + 0x4cdf98]
push ecx
inc eax
push eax
call dword [0x49655c]
test eax, eax
pop ecx
pop ecx
jne 0x406a19
mov byte [esi + 0x1346], 0x23
cmp byte [esi + 0x1346], 0x23
je 0x406a36
inc byte [esp + 0x17]
cmp byte [esp + 0x17], 0x7d
jb 0x406992
jmp 0x406b51
test ebx, ebx
je 0x406a5a
movzx eax, byte [esp + 0x17]
imul eax, eax, 0x110
cmp dword [eax + 0x4ce0a0], 0
je 0x406a5a
lea eax, [eax + 0x4ce0a4]
mov cl, 1
sub cl, byte [eax]
mov byte [eax], cl
movzx eax, byte [esp + 0x17]
mov edx, dword [esi + 0x1328]
mov ebp, eax
imul eax, eax, 0x44
imul ebp, ebp, 0x110
movzx ecx, byte [ebp + 0x4ce0a4]
add ecx, eax
cmp edx, dword [ecx*4 + 0x4ce09c]
mov dword [esp + 0x20], eax
je 0x406b51
lea ebx, [esi + 0x1314]
mov word [ebx], 2
movzx ecx, byte [ebp + 0x4ce0a4]
add ecx, eax
mov eax, dword [ecx*4 + 0x4ce09c]
push 0x35
mov dword [esi + 0x1318], eax
call dword [0x4969b4]
mov word [esi + 0x1316], ax
call edi
and dword [eax], 0
push 0x10
push ebx
push 0
push dword [esi + 0x133c]
lea eax, [esi + 8]
push eax
push dword [0x4ca918]
call dword [0x496968]
mov dword [esp + 0x1c], eax
call edi
mov ebx, eax
call dword [0x4969c0]
mov dword [ebx], eax
call edi
xor ebx, ebx
cmp dword [eax], ebx
jne 0x406c2a
cmp dword [esp + 0x1c], ebx
jle 0x406c2a
cmp byte [0x4f5e83], 2
jb 0x406b4d
movzx eax, byte [ebp + 0x4ce0a4]
add eax, dword [esp + 0x20]
push 0x4c5b20
mov eax, dword [eax*4 + 0x4ce09c]
call fcn.0040a18e
pop ecx
push eax
call fcn.0040a04e
push eax
push str._s_forwarded_to_Conditional_Forwarder__s
push 0x4c5820
call fcn.0040d69e
add esp, 0x10
cmp byte [0x4f5e82], 2
jb 0x406b4d
call fcn.0040be4d
mov ebx, dword [esp + 0x18]
mov al, byte [esi + 0x1346]
cmp al, 0x23
je 0x406e72
cmp al, 0x1a
jne 0x406ba0
mov al, byte [0x4ccd40]
movzx ecx, word [esi + 0x1340]
movzx dx, al
cmp cx, dx
jbe 0x406ba0
movzx eax, al
movzx ecx, cx
sub ecx, eax
lea eax, [ecx + esi + 0x1108]
push 0x4ccc40
push eax
call dword [0x49655c]
test eax, eax
pop ecx
pop ecx
jne 0x406ba0
mov byte [esi + 0x1346], 0x21
cmp byte [0x4f5e84], 0
je 0x406cbe
mov al, byte [esi + 0x1346]
cmp al, 0x1c
je 0x406bc3
cmp al, 0x21
je 0x406bc3
cmp al, 0x1f
jne 0x406cbe
cmp byte [0x4f5e83], 2
jb 0x406bf2
call fcn.0040a04e
push eax
push str._s_not_found
push 0x4c5820
call fcn.0040d69e
add esp, 0xc
cmp byte [0x4f5e82], 2
jb 0x406bf2
call fcn.0040be4d
movzx eax, word [esi + 0x1342]
dec eax
dec eax
je 0x406ca6
sub eax, 4
mov eax, esi
je 0x406c9a
call fcn.004038de
mov eax, esi
call fcn.00404e44
mov esi, dword [esi]
mov eax, dword [esi]
and eax, 0xf3ffffff
or eax, 0x3000000
mov dword [esi], eax
jmp 0x406c92
cmp byte [0x4f5e83], 0
je 0x406c7c
mov eax, dword [esi + 0x1318]
push 0x4c5b20
call fcn.0040a18e
pop ecx
push eax
push str.Error_Forwarding_UDP_DNS_Message_to_Conditional_Forwarder__s
push 0x4c5820
call fcn.0040d69e
add esp, 0xc
cmp byte [0x4f5e82], 1
jb 0x406c65
call fcn.0040be4d
mov eax, esi
call fcn.004038de
mov esi, dword [esi]
mov eax, dword [esi]
and eax, 0xf2ffffff
or eax, 0x2000000
mov dword [esi], eax
cmp dword [ebp + 0x4ce0a0], ebx
je 0x406c92
mov al, 1
sub al, byte [ebp + 0x4ce0a4]
mov byte [ebp + 0x4ce0a4], al
xor ax, ax
jmp 0x407005
call fcn.004038de
call fcn.00404ca7
jmp 0x406cb4
mov eax, esi
call fcn.004038de
mov eax, esi
call fcn.00404e44
mov esi, dword [esi]
and dword [esi], 0xf0ffffff
jmp 0x406c92
mov eax, dword [esi]
test byte [eax + 2], 1
jne 0x406d10
mov eax, esi
call fcn.004038de
mov eax, dword [esi]
mov ecx, dword [eax]
and ecx, 0xf3ffffff
or ecx, 0x3000000
mov dword [eax], ecx
cmp byte [0x4f5e83], 0
je 0x406c92
call fcn.0040a04e
push eax
push str._s_is_not_found__recursion_not_desired_
push 0x4c5820
call fcn.0040d69e
add esp, 0xc
cmp byte [0x4f5e82], 2
jb 0x406c92
call fcn.0040be4d
jmp 0x406c92
xor edx, edx
cmp dword [0x4cc8b0], edx
jne 0x406d55
mov eax, esi
call fcn.004038de
mov eax, dword [esi]
mov ecx, dword [eax]
and ecx, 0xf3ffffff
or ecx, 0x3000000
mov dword [eax], ecx
mov eax, dword [esi]
and dword [eax], 0x7fffffff
cmp byte [0x4f5e83], 0
je 0x406c92
call fcn.0040a04e
push eax
push str._s_not_found__recursion_not_available_
jmp 0x406cf3
cmp ebx, edx
je 0x406d92
cmp dword [0x4cc8b4], edx
je 0x406d92
mov al, byte [ebx + 0x13]
cmp al, 0x7d
jae 0x406d92
mov cl, byte [0x4ccaa8]
cmp cl, al
jne 0x406d92
inc cl
cmp cl, 0x7d
mov byte [0x4ccaa8], cl
jae 0x406d8b
movzx eax, cl
cmp dword [eax*4 + 0x4cc8b0], edx
jne 0x406d92
mov byte [0x4ccaa8], 0
movzx eax, byte [0x4ccaa8]
mov ecx, dword [esi + 0x1328]
cmp ecx, dword [eax*4 + 0x4cc8b0]
je 0x406e72
lea ebp, [esi + 0x1314]
mov word [ebp], 2
movzx eax, byte [0x4ccaa8]
mov eax, dword [eax*4 + 0x4cc8b0]
push 0x35
mov dword [esi + 0x1318], eax
call dword [0x4969b4]
mov word [esi + 0x1316], ax
call edi
and dword [eax], 0
push 0x10
push ebp
push 0
push dword [esi + 0x133c]
lea eax, [esi + 8]
push eax
push dword [0x4ca918]
call dword [0x496968]
mov dword [esp + 0x1c], eax
call edi
mov ebp, dword [0x4969c0]
mov ebx, eax
call ebp
mov dword [ebx], eax
call ebp
call edi
xor edi, edi
cmp dword [eax], edi
jne 0x406ec4
cmp dword [esp + 0x1c], edi
jle 0x406ec4
cmp byte [0x4f5e83], 2
jb 0x406e6e
movzx eax, byte [0x4ccaa8]
mov eax, dword [eax*4 + 0x4cc8b0]
push 0x4c5b20
call fcn.0040a18e
pop ecx
push eax
call fcn.0040a04e
push eax
push str._s_forwarded_to_Forwarding_Server__s
push 0x4c5820
call fcn.0040d69e
add esp, 0x10
cmp byte [0x4f5e82], 2
jb 0x406e6e
call fcn.0040be4d
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x406f59
lea eax, [esi + 0x1008]
push eax
push dword [ebx + 0x20]
call dword [0x49655c]
test eax, eax
pop ecx
pop ecx
jne 0x406f59
mov eax, dword [0x4f7380]
mov ecx, dword [0x4f7384]
add eax, 2
mov dword [ebx + 8], eax
push 0x10
lea eax, [esi + 0x1324]
push eax
push dword [ebx + 0x1c]
adc ecx, 0
mov dword [ebx + 0xc], ecx
call fcn.00486306
add esp, 0xc
jmp 0x406fcd
cmp byte [0x4f5e83], 0
je 0x406f1e
movzx eax, byte [0x4ccaa8]
mov eax, dword [eax*4 + 0x4cc8b0]
push 0x4c5b20
call fcn.0040a18e
pop ecx
push eax
push str.Error_forwarding_UDP_DNS_Message_to_Forwarding_Server__s
push 0x4c5820
call fcn.0040d69e
add esp, 0xc
cmp byte [0x4f5e82], 1
jb 0x406f07
call fcn.0040be4d
mov eax, esi
call fcn.004038de
mov esi, dword [esi]
mov eax, dword [esi]
and eax, 0xf2ffffff
or eax, 0x2000000
mov dword [esi], eax
cmp dword [0x4cc8b4], edi
je 0x406c92
inc byte [0x4ccaa8]
cmp byte [0x4ccaa8], 0x7d
jae 0x406f4d
movzx eax, byte [0x4ccaa8]
cmp dword [eax*4 + 0x4cc8b0], edi
jne 0x406c92
mov byte [0x4ccaa8], 0
jmp 0x406c92
push 0x24
push 0
mov edi, 0x4c53d4
push edi
call fcn.0048635c
lea eax, [esp + 0x30]
mov dword [0x4c53d4], eax
lea eax, [esi + 0x1324]
mov dword [0x4c53e4], eax
lea eax, [esi + 0x1008]
mov dword [0x4c53e0], eax
add esp, 0xc
mov eax, edi
mov byte [0x4c53f4], 0x16
call fcn.0040be9e
test eax, eax
mov dword [esp + 0x18], eax
je 0x406fc9
mov eax, dword [0x4f7380]
mov edx, dword [0x4f7384]
mov ecx, dword [esp + 0x18]
add eax, 2
mov dword [ecx + 8], eax
movzx eax, byte [0x4c7649]
adc edx, 0
push eax
mov dword [ecx + 0xc], edx
call fcn.0040a892
pop ecx
mov ebx, dword [esp + 0x18]
mov al, byte [esi + 0x1347]
mov byte [ebx + 0x12], al
cmp byte [esi + 0x1346], 0x23
jne 0x406ff8
mov al, byte [esp + 0x17]
movzx ecx, al
imul ecx, ecx, 0x110
add al, al
add al, byte [ecx + 0x4ce0a4]
add al, 0x80
jmp 0x406ffd
mov al, byte [0x4ccaa8]
mov byte [ebx + 0x13], al
mov ax, word [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004862e5
add esp, 0x24
ret