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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100dcdc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
add eax, 0xfffffffd
push edi
mov edi, dword [esi + 0x10]
cmp eax, 4
ja case.0x100684fa.4
jmp dword [eax*4 + 0x10068778]
mov eax, dword [esi + 0x148]
movzx edx, word [esi + 0x144]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 1]
movzx eax, ax
cmp eax, ecx
jne 0x1006852e
mov dword [esi + 0x18], 0
jmp 0x10068536
cmp edx, ecx
jne 0x1006873b
mov word [esi + 0x144], cx
mov eax, dword [esi + 0x14c]
mov byte [eax], 0
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x100686a8
mov eax, dword [esi + 0x13c]
xor ecx, ecx
add eax, 4
cmp dword [esi + 0x134], eax
lea eax, [esi + 0x28]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [esi], ecx
call fcn.10097024
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [esi + 0x144], ax
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14c]
mov byte [eax], 0
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 4
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x100686a8
lea eax, [esi + 0x28]
mov dword [esi], 1
push eax
call fcn.10097024
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x10068680
pop edi
mov dword [esi + 8], 0xffffff9d
xor eax, eax
mov dword [esi], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x1006873b
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10079af0
push eax
push 0x100bc06c
push edi
call fcn.1004cb70
add esp, 0x18
mov eax, 0x37
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov byte [eax], 0
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008c543
mov esp, ebp
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x100bc06c
push edi
call fcn.1004cb70
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 0x47
pop edi
pop esi
call fcn.1008c543
mov esp, ebp
pop ebp
ret