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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x4dbfb4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebx + 0x10]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
cmp dword [esi + 0xb68], 0
push edi
mov edi, str.octet
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x14c], 0
je 0x47b98c
mov edi, str.netascii
mov dword [ebp - 0x148], edi
cmp eax, 7
ja case.0x47b995.1
jmp dword [eax*4 + 0x47bda4]
inc dword [ebx + 0x18]
mov eax, dword [ebx + 0x18]
cmp eax, dword [ebx + 0x20]
jle 0x47b9c6
pop edi
mov dword [ebx + 8], 0xffffff9e
mov dword [ebx], 3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbb0], 0
je 0x47ba18
mov edx, dword [ebx + 0x160]
mov byte [edx], 0
mov eax, dword [ebx + 0x160]
mov byte [eax + 1], 2
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x160]
mov eax, dword [edx]
add ecx, 4
mov dword [eax + 0x148], ecx
mov eax, dword [esi + 0x1128]
mov ecx, dword [esi + 0x112c]
mov edx, eax
and edx, ecx
cmp edx, 0xffffffff
je 0x47ba2b
push ecx
push eax
push esi
call fcn.0048ce90
add esp, 0xc
jmp 0x47ba2b
mov eax, dword [ebx + 0x160]
mov byte [eax], 0
mov ecx, dword [ebx + 0x160]
mov byte [ecx + 1], 1
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x150]
push edx
mov edx, dword [ecx + 0x1160]
push 0
inc edx
push edx
push esi
call fcn.0048b0b0
add esp, 0x18
mov dword [ebp - 0x14c], eax
test eax, eax
jne 0x47bd91
mov eax, dword [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47ba65
sub eax, edx
mov edx, eax
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47ba75
mov ecx, dword [ebx + 0x154]
sub eax, edi
mov edi, ecx
sub edi, eax
sub edi, 4
cmp edx, edi
jbe 0x47babf
push str.TFTP_file_name_too_long_n
push esi
call fcn.0046af40
mov eax, dword [ebp - 0x150]
push eax
call dword [0x4db928]
add esp, 0xc
pop edi
mov eax, 0x47
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x148]
mov edx, dword [ebp - 0x150]
mov eax, dword [ebx + 0x160]
push 0
push edi
push 0
push edx
push str._s_c_s_c
push ecx
add eax, 2
push eax
call fcn.00473180
mov eax, dword [ebp - 0x150]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47baf2
mov ecx, edi
sub eax, edx
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x47bb00
sub ecx, edi
cmp dword [esi + 0xb48], 0
lea edi, [ecx + eax + 4]
mov dword [ebp - 0x148], edi
jne 0x47bc7c
cmp dword [esi + 0xbb0], 0
je 0x47bb55
mov eax, dword [esi + 0x1128]
mov esi, dword [esi + 0x112c]
mov ecx, eax
and ecx, esi
cmp ecx, 0xffffffff
je 0x47bb55
push esi
push eax
push str._I64d
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.00473180
add esp, 0x14
jmp 0x47bb5e
mov eax, 0x30
mov word [ebp - 0x44], ax
mov ecx, dword [ebx + 0x160]
add ecx, edi
push ecx
push ebx
mov esi, str.tsize
lea edi, [ebp - 0x148]
call fcn.0047acf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47bb9c
mov edx, dword [ebx + 0x160]
add edx, dword [ebp - 0x148]
lea esi, [ebp - 0x44]
push edx
push ebx
call fcn.0047acf0
add esp, 8
mov esi, eax
mov eax, dword [ebx + 0x158]
push eax
push 0x4bf71c
lea ecx, [ebp - 0x44]
push 0x40
push ecx
call fcn.00473180
add esp, 0x10
test esi, esi
jne 0x47bbfc
mov edx, dword [ebx + 0x160]
add edx, dword [ebp - 0x148]
mov esi, str.blksize
push edx
push ebx
lea edi, [ebp - 0x148]
call fcn.0047acf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x47bbfc
mov eax, dword [ebx + 0x160]
add eax, dword [ebp - 0x148]
lea esi, [ebp - 0x44]
push eax
push ebx
call fcn.0047acf0
add esp, 8
mov esi, eax
mov ecx, dword [ebx + 0x1c]
push ecx
push 0x4bf71c
lea edx, [ebp - 0x44]
push 0x40
push edx
call fcn.00473180
add esp, 0x10
test esi, esi
jne 0x47bc5f
mov eax, dword [ebx + 0x160]
add eax, dword [ebp - 0x148]
mov esi, str.timeout
push eax
push ebx
lea edi, [ebp - 0x148]
call fcn.0047acf0
add esp, 8
test eax, eax
jne 0x47bc5f
mov ecx, dword [ebx + 0x160]
add ecx, dword [ebp - 0x148]
lea esi, [ebp - 0x44]
push ecx
push ebx
call fcn.0047acf0
add esp, 8
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x47bc70
mov edx, dword [ebp - 0x154]
push str.TFTP_buffer_too_small_for_options
push edx
jmp 0x47ba95
mov edi, dword [ebp - 0x148]
mov esi, dword [ebp - 0x154]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx + 0x2b8]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebx + 0x160]
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 0x47bccc
push pe_nt_image_headers32
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00492ff0
push eax
push 0x4c139c
push esi
call fcn.0046af40
add esp, 0x18
mov ecx, dword [ebp - 0x150]
push ecx
call dword [0x4db928]
mov eax, dword [ebp - 0x14c]
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xbb0], 0
push 6
je 0x47bd41
mov eax, ebx
call fcn.0047b8c0
add esp, 4
pop edi
mov dword [ebp - 0x14c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
push 4
mov eax, ebx
call fcn.0047b8c0
add esp, 4
pop edi
mov dword [ebp - 0x14c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
push 3
mov esi, ebx
call fcn.0047b900
add esp, 4
pop edi
mov dword [ebp - 0x14c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14c]
pop edi
mov dword [ebx], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1682
mov esp, ebp
pop ebp
ret
push str.tftp_send_first:_internal_error
push esi
call fcn.0046af40
mov eax, dword [ebp - 0x14c]
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a1682
mov esp, ebp
pop ebp
ret