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

Disassembly:
sub esp, 0x58
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
mov esi, dword [ecx]
cmp dword [esi + 0x37c], 0
mov ebx, str.octet
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
je 0x42f9ec
mov ebx, str.netascii
cmp eax, 7
ja case.0x42f9f5.1
jmp dword [eax*4 + 0x42fd4c]
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x42fa29
mov dword [edi + 8], 0xffffff9e
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004453f2
add esp, 0x58
ret
cmp dword [esi + 0x3b4], 0
je 0x42fa7c
mov edx, dword [edi + 0x160]
mov byte [edx], 0
mov eax, dword [edi + 0x160]
mov byte [eax + 1], 2
mov edx, dword [edi + 0x10]
mov ecx, dword [edi + 0x160]
mov eax, dword [edx]
add ecx, 4
mov dword [eax + 0x114], ecx
mov eax, dword [esi + 0x87f0]
mov ecx, dword [esi + 0x87f4]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x42fa8f
push ecx
push eax
mov eax, esi
call fcn.00426ed0
add esp, 8
jmp 0x42fa8f
mov eax, dword [edi + 0x160]
mov byte [eax], 0
mov ecx, dword [edi + 0x160]
mov byte [ecx + 1], 1
mov eax, dword [edi + 0x10]
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x87c4]
push 0
lea edx, [esp + 0x1c]
push 0
push edx
inc ecx
xor eax, eax
call fcn.004342b0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x42fd36
mov ebp, dword [esp + 0x18]
mov edx, dword [edi + 0x154]
push eax
push ebx
push eax
mov eax, dword [edi + 0x160]
push ebp
push str._s_c_s_c
push edx
add eax, 2
push eax
call fcn.00413a70
mov eax, ebp
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fae5
sub eax, edx
mov edx, eax
mov eax, ebx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42faf5
sub eax, ebx
cmp dword [esi + 0x1f4], 0
lea ebx, [eax + edx + 4]
jne 0x42fc92
cmp dword [esi + 0x3b4], 0
je 0x42fb45
mov eax, dword [esi + 0x87f0]
mov esi, dword [esi + 0x87f4]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x42fb45
push esi
push eax
push str._I64d
lea edx, [esp + 0x2c]
push 0x40
push edx
call fcn.00413a70
add esp, 0x14
jmp 0x42fb4f
mov eax, 0x30
mov word [esp + 0x20], ax
mov edx, dword [edi + 0x160]
lea ecx, [ebx + 6]
add edx, ebx
cmp ecx, dword [edi + 0x154]
jbe 0x42fb66
xor eax, eax
jmp 0x42fb70
mov esi, str.tsize
call fcn.0042f920
mov ebp, dword [edi + 0x160]
add ebx, eax
lea eax, [esp + 0x20]
add ebp, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fb81
sub eax, edx
lea edx, [eax + ebx + 1]
cmp edx, dword [edi + 0x154]
jbe 0x42fb9a
xor eax, eax
jmp 0x42fba5
lea esi, [esp + 0x20]
mov edx, ebp
call fcn.0042f920
add ebx, eax
mov eax, dword [edi + 0x158]
push eax
push 0x4618ac
lea ecx, [esp + 0x28]
push 0x40
push ecx
call fcn.00413a70
mov edx, dword [edi + 0x160]
lea eax, [ebx + 8]
add esp, 0x10
add edx, ebx
cmp eax, dword [edi + 0x154]
jbe 0x42fbd9
xor eax, eax
jmp 0x42fbe3
mov esi, str.blksize
call fcn.0042f920
mov ebp, dword [edi + 0x160]
add ebx, eax
lea eax, [esp + 0x20]
add ebp, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fbf4
sub eax, edx
lea ecx, [eax + ebx + 1]
cmp ecx, dword [edi + 0x154]
jbe 0x42fc0d
xor eax, eax
jmp 0x42fc18
lea esi, [esp + 0x20]
mov edx, ebp
call fcn.0042f920
mov edx, dword [edi + 0x1c]
push edx
push 0x4618ac
add ebx, eax
lea eax, [esp + 0x28]
push 0x40
push eax
call fcn.00413a70
mov edx, dword [edi + 0x160]
lea ecx, [ebx + 8]
add esp, 0x10
add edx, ebx
cmp ecx, dword [edi + 0x154]
jbe 0x42fc49
xor eax, eax
jmp 0x42fc53
mov esi, str.timeout
call fcn.0042f920
mov ebp, dword [edi + 0x160]
add ebx, eax
lea eax, [esp + 0x20]
add ebp, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42fc64
sub eax, edx
lea edx, [eax + ebx + 1]
cmp edx, dword [edi + 0x154]
jbe 0x42fc7d
xor eax, eax
jmp 0x42fc88
lea esi, [esp + 0x20]
mov edx, ebp
call fcn.0042f920
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add ebx, eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x4c]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x18]
mov eax, dword [edi + 0x160]
push ecx
mov ecx, dword [edi + 0x14]
push edx
push 0
push ebx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, ebx
je 0x42fcdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x10]
push edx
mov edi, eax
call fcn.00412840
add esp, 4
push eax
push 0x461afc
mov eax, esi
call fcn.00414140
add esp, 8
push ebp
call dword [0x46f554]
jmp 0x42fd2f
cmp dword [esi + 0x3b4], 0
push 6
mov esi, edi
je 0x42fd10
call fcn.0042f940
mov dword [esp + 0x18], eax
jmp 0x42fd2f
push 4
mov esi, edi
call fcn.0042f940
mov dword [esp + 0x18], eax
jmp 0x42fd2f
push 3
mov esi, edi
call fcn.0042f980
mov dword [esp + 0x18], eax
jmp 0x42fd2f
mov dword [edi], 3
jmp 0x42fd32
push str.tftp_send_first:_internal_error
mov eax, esi
call fcn.00414140
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004453f2
add esp, 0x58
ret