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

Disassembly:
sub esp, 0x154
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x150], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [esp + 0x158]
push ebp
push esi
mov esi, dword [ecx]
cmp dword [esi + 0xba8], 0
push edi
mov edi, str.octet
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
je 0x4d2bfa
mov edi, str.netascii
mov dword [esp + 0xc], edi
cmp eax, 7
ja case.0x4d2c03.1
jmp dword [eax*4 + 0x4d2fb0]
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x4d2c3c
pop edi
pop esi
mov dword [ebx + 8], 0xffffff9e
mov dword [ebx], 3
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x154
ret
cmp dword [esi + 0xbf0], 0
lea ebp, [ebx + 0x160]
mov ecx, ebp
je 0x4d2c8a
mov eax, 2
call fcn.004d1cf0
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp]
mov ecx, dword [eax]
add edx, 4
mov dword [ecx + 0x134], edx
mov eax, dword [esi + 0x11b8]
mov ecx, dword [esi + 0x11bc]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x4d2c94
push ecx
push eax
push esi
call fcn.004cc720
add esp, 0xc
jmp 0x4d2c94
mov eax, 1
call fcn.004d1cf0
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx]
push 4
push 0
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edx + 0x11f0]
push 0
inc eax
push eax
push esi
call fcn.004cd770
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4d2f96
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2cc8
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2cd8
mov ecx, dword [ebx + 0x154]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x4d2d28
push str.TFTP_file_name_too_long_n
push esi
call fcn.004bd3d0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [0x84f474]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp]
push 0
push edi
push 0
push edx
push str._s_c_s_c
push ecx
add eax, 2
push eax
call fcn.004c5f00
mov eax, dword [esp + 0x30]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d2d52
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4d2d60
sub ecx, edi
cmp dword [esi + 0xb88], 0
lea edi, [ecx + eax + 4]
mov dword [esp + 0xc], edi
jne 0x4d2ee2
cmp dword [esi + 0xbf0], 0
je 0x4d2db4
mov eax, dword [esi + 0x11b8]
mov esi, dword [esi + 0x11bc]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x4d2db4
push esi
push eax
push str._I64d
lea edx, [esp + 0x28]
push 0x40
push edx
call fcn.004c5f00
add esp, 0x14
jmp 0x4d2dbe
mov eax, 0x30
mov word [esp + 0x1c], ax
mov ecx, dword [ebp]
add ecx, edi
push ecx
push ebx
mov esi, str.tsize
lea edi, [esp + 0x14]
call fcn.004d1fd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d2df3
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push edx
push ebx
call fcn.004d1fd0
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x158]
push eax
push 0x78b5e4
lea ecx, [esp + 0x24]
push 0x40
push ecx
call fcn.004c5f00
add esp, 0x10
test esi, esi
jne 0x4d2e49
mov edx, dword [ebp]
add edx, dword [esp + 0xc]
mov esi, str.blksize
push edx
push ebx
lea edi, [esp + 0x14]
call fcn.004d1fd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d2e49
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push eax
push ebx
call fcn.004d1fd0
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x78b5e4
lea edx, [esp + 0x24]
push 0x40
push edx
call fcn.004c5f00
add esp, 0x10
test esi, esi
jne 0x4d2ea0
mov eax, dword [ebp]
add eax, dword [esp + 0xc]
mov esi, str.timeout
push eax
push ebx
lea edi, [esp + 0x14]
call fcn.004d1fd0
add esp, 8
test eax, eax
jne 0x4d2ea0
mov ecx, dword [ebp]
add ecx, dword [esp + 0xc]
lea esi, [esp + 0x1c]
push ecx
push ebx
call fcn.004d1fd0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4d2eda
mov edx, dword [esp + 0x18]
push str.TFTP_buffer_too_small_for_options
push edx
call fcn.004bd3d0
mov eax, dword [esp + 0x1c]
push eax
call dword [0x84f474]
add esp, 0xc
pop edi
pop esi
mov eax, 0x47
pop ebp
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x154
ret
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x2b8]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp]
push edx
mov edx, dword [ebx + 0x14]
push eax
push 0
push edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
je 0x4d2f2d
push 0x100
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004eb470
push eax
push 0x7898b8
push esi
call fcn.004bd3d0
add esp, 0x18
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x84f474]
add esp, 4
jmp 0x4d2f92
cmp dword [esi + 0xbf0], 0
push 6
je 0x4d2f6c
mov eax, ebx
call fcn.004d2b30
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4d2f92
push 4
mov eax, ebx
call fcn.004d2b30
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4d2f92
push 3
mov esi, ebx
call fcn.004d2b70
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4d2f92
mov dword [ebx], 3
jmp 0x4d2f92
push str.tftp_send_first:_internal_error
push esi
call fcn.004bd3d0
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0048d1f2
add esp, 0x154
ret