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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
xor edx, edx
push edi
mov dword [ebp - 0x4c], str.octet
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], edx
cmp dword [ebx + 0x2e4], edx
je 0x4670f4
mov dword [ebp - 0x4c], str.netascii
mov eax, dword [ebp + 8]
sub eax, edx
push 3
pop ecx
je 0x46714b
sub eax, ecx
je 0x467143
dec eax
je 0x46713f
dec eax
je 0x467138
dec eax
je 0x46711f
dec eax
je 0x46714b
push str.tftp_send_first:_internal_error
push ebx
call fcn.0045b1fe
pop ecx
jmp 0x467345
push 6
cmp dword [ebx + 0x31c], edx
je 0x467144
mov eax, esi
call fcn.00467055
mov dword [ebp - 0x48], eax
jmp 0x467345
mov dword [esi], ecx
jmp 0x467346
push 4
jmp 0x467129
push ecx
call fcn.0046708c
jmp 0x467130
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x467166
mov dword [esi + 8], 0xffffff9e
mov dword [esi], ecx
xor eax, eax
jmp 0x467349
lea edi, [esi + 0x160]
mov eax, edi
cmp dword [ebx + 0x31c], edx
je 0x4671b0
push 2
pop ecx
call fcn.0046660a
mov eax, dword [edi]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx]
add eax, 4
mov dword [ecx + 0x114], eax
mov eax, dword [ebx + 0x1f8]
mov ecx, dword [ebx + 0x1fc]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4671b8
push ecx
push eax
push ebx
call fcn.004737bf
add esp, 0xc
jmp 0x4671b8
xor ecx, ecx
inc ecx
call fcn.0046660a
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x86a8]
push 0
push 0
inc eax
push eax
push ebx
call fcn.00473005
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x54], ebx
test ebx, ebx
jne 0x4671e3
push 0x1b
pop eax
jmp 0x467349
mov eax, dword [edi]
push 0
push dword [ebp - 0x4c]
add eax, 2
push 0
push ebx
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.0045e1af
push ebx
call fcn.0040b990
push dword [ebp - 0x4c]
mov ebx, eax
call fcn.0040b990
lea ebx, [ebx + eax + 4]
mov eax, dword [ebp - 0x50]
add esp, 0x24
cmp dword [eax + 0x31c], 0
je 0x467250
mov ecx, dword [eax + 0x1f8]
mov eax, dword [eax + 0x1fc]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x467250
push eax
push ecx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0045e1af
add esp, 0x14
jmp 0x467260
lea eax, [ebp - 0x44]
push 0x4b9288
push eax
call fcn.0040d8f0
pop ecx
pop ecx
mov eax, dword [edi]
push str.tsize
add eax, ebx
push eax
push ebx
push esi
call fcn.00466857
add ebx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.00466857
push dword [esi + 0x158]
add ebx, eax
push 0x4b64a8
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0045e1af
mov eax, dword [edi]
push str.blksize
add eax, ebx
push eax
push ebx
push esi
call fcn.00466857
add ebx, eax
add esp, 0x40
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.00466857
push dword [esi + 0x1c]
add ebx, eax
push 0x4b64a8
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0045e1af
mov eax, dword [edi]
push str.timeout
add eax, ebx
push eax
push ebx
push esi
call fcn.00466857
add ebx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.00466857
add esp, 0x40
add ebx, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x4c]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push ebx
push dword [edi]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebx
je 0x46733c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.0045f9f4
push eax
push 0x4b7128
push dword [ebp - 0x50]
call fcn.0045b1fe
add esp, 0x14
push dword [ebp - 0x54]
call dword [0x4d5afc]
pop ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c660
leave
ret