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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov eax, dword [esi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebx + 0xa8c]
push edi
xor edi, edi
mov dword [ebp - 0x8c], str.octet
mov dword [ebp - 0x90], ebx
test eax, 0x800
je 0x419676
mov dword [ebp - 0x8c], str.netascii
sub ecx, edi
push 3
pop edx
je 0x4196c8
sub ecx, edx
je 0x4196c0
dec ecx
je 0x4196bc
dec ecx
je 0x4196b5
dec ecx
je 0x41969e
dec ecx
je 0x4196c8
push str.tftp_send_first:_internal_error
push ebx
call fcn.0040ea8b
pop ecx
jmp 0x419954
push 6
test eax, 0x20000000
je 0x4196c1
mov eax, esi
call fcn.004195c1
mov edi, eax
jmp 0x419954
mov dword [esi], edx
jmp 0x419955
push 4
jmp 0x4196a7
push edx
call fcn.004195fb
jmp 0x4196ae
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x4196e3
mov dword [esi + 8], 0xffffff9e
mov dword [esi], edx
xor eax, eax
jmp 0x419957
test dword [ebx + 0xa8c], 0x20000000
lea edi, [esi + 0x160]
mov eax, edi
je 0x419731
push 2
pop ecx
call fcn.00418a70
mov eax, dword [edi]
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx]
add eax, 4
mov dword [ecx + 0x148], eax
mov eax, dword [ebx + 0xf28]
mov ecx, dword [ebx + 0xf2c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x419739
push ecx
push eax
push ebx
call fcn.0042aa3b
add esp, 0xc
jmp 0x419739
xor ecx, ecx
inc ecx
call fcn.00418a70
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x88]
push ecx
push eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0xf60]
inc eax
push eax
push ebx
call fcn.004291f9
add esp, 0x18
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x419957
push dword [ebp - 0x8c]
call fcn.0043bce0
mov ecx, dword [esi + 0x154]
push dword [ebp - 0x88]
sub ecx, eax
add ecx, 0xfffffffc
mov dword [ebp - 0x98], ecx
call fcn.0043bce0
pop ecx
pop ecx
cmp eax, dword [ebp - 0x98]
jbe 0x4197bc
push str.TFTP_file_name_too_long_n
push ebx
call fcn.0040ea8b
push dword [ebp - 0x88]
call dword [0x462004]
add esp, 0xc
push 0x47
pop eax
jmp 0x419957
mov eax, dword [edi]
push 0
push dword [ebp - 0x8c]
add eax, 2
push 0
push dword [ebp - 0x88]
push str._s_c_s_c
push dword [esi + 0x154]
push eax
call fcn.004285eb
push dword [ebp - 0x88]
call fcn.0043bce0
push dword [ebp - 0x8c]
mov ebx, eax
call fcn.0043bce0
lea ebx, [ebx + eax + 4]
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0xa8c]
add esp, 0x24
test cl, 8
jne 0x4198f8
test ecx, 0x20000000
je 0x41984a
mov ecx, dword [eax + 0xf28]
mov eax, dword [eax + 0xf2c]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x41984a
push eax
push ecx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004285eb
add esp, 0x14
jmp 0x41985a
lea eax, [ebp - 0x44]
push 0x453f20
push eax
call fcn.0043ce20
pop ecx
pop ecx
mov eax, dword [edi]
push str.tsize
add eax, ebx
push eax
push ebx
push esi
call fcn.00418cc1
add ebx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.00418cc1
push dword [esi + 0x158]
add ebx, eax
push 0x4517d8
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004285eb
mov eax, dword [edi]
push str.blksize
add eax, ebx
push eax
push ebx
push esi
call fcn.00418cc1
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.00418cc1
push dword [esi + 0x1c]
add ebx, eax
push 0x4517d8
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004285eb
mov eax, dword [edi]
push str.timeout
add eax, ebx
push eax
push ebx
push esi
call fcn.00418cc1
add ebx, eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edi]
add eax, ebx
push eax
push ebx
push esi
call fcn.00418cc1
add esp, 0x40
add ebx, eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x50]
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 0x419942
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00431c8d
push eax
push 0x45333c
push dword [ebp - 0x90]
call fcn.0040ea8b
add esp, 0x18
push dword [ebp - 0x88]
call dword [0x462004]
mov edi, dword [ebp - 0x94]
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret