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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, str.octet
mov eax, str.netascii
push 3
mov ebx, dword [edi + 0x10]
cmp byte [ebx + 0xd04], 0
cmove eax, ecx
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0xc]
pop ecx
sub eax, esi
je 0x54fc63
sub eax, ecx
je 0x54fc5a
sub eax, 1
je 0x54fc55
sub eax, 1
je 0x54fc4e
sub eax, 1
je 0x54fc35
sub eax, 1
je 0x54fc63
push str.tftp_send_first:_internal_error
push ebx
call fcn.0052cc10
pop ecx
jmp 0x54ff7b
cmp byte [ebx + 0x711], 0
push 6
push edi
je 0x54fc5c
call fcn.0054f4ad
pop ecx
mov esi, eax
jmp 0x54ff7b
mov dword [edi], ecx
jmp 0x54ff7c
push 4
push edi
jmp 0x54fc41
push ecx
push edi
call fcn.0054f473
jmp 0x54fc46
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x54fc7e
mov dword [edi + 8], 0xffffff9e
xor eax, eax
mov dword [edi], ecx
jmp 0x54ff7e
cmp byte [ebx + 0x711], 0
lea esi, [edi + 0x14c]
je 0x54fcc7
push 2
push esi
call fcn.0054f458
mov eax, dword [edi + 0x10]
pop ecx
pop ecx
mov ecx, dword [esi]
add ecx, 4
mov dword [eax + 0x130], ecx
mov ecx, dword [ebx + 0xc50]
mov eax, ecx
mov edx, dword [ebx + 0xc54]
and eax, edx
cmp eax, 0xffffffff
je 0x54fcd1
push edx
push ecx
push ebx
call fcn.00538429
add esp, 0xc
jmp 0x54fcd1
push 1
push esi
call fcn.0054f458
pop ecx
pop ecx
push 4
push 0
lea eax, [ebp - 0x150]
push eax
mov eax, dword [edi + 0x10]
push 0
mov eax, dword [eax + 0xc88]
inc eax
push eax
push ebx
call fcn.00553139
add esp, 0x18
mov dword [ebp - 0x154], eax
test eax, eax
jne 0x54ff7e
push dword [ebp - 0x14c]
call fcn.0056c2b0
mov esi, dword [edi + 0x13c]
push dword [ebp - 0x150]
sub esi, eax
sub esi, 4
call fcn.0056c2b0
pop ecx
pop ecx
cmp eax, esi
jbe 0x54fd49
push str.TFTP_file_name_too_long
push ebx
call fcn.0052cc10
push dword [ebp - 0x150]
call dword [0x59e13c]
add esp, 0xc
push 0x47
pop eax
jmp 0x54ff7e
mov eax, dword [edi + 0x14c]
push 0
push dword [ebp - 0x14c]
add eax, 2
push 0
push dword [ebp - 0x150]
push str._s_c_s_c
push dword [edi + 0x13c]
push eax
call fcn.0053b624
push dword [ebp - 0x150]
call fcn.0056c2b0
push dword [ebp - 0x14c]
mov esi, eax
call fcn.0056c2b0
add eax, 4
add esp, 0x24
add eax, esi
cmp byte [ebx + 0x6f7], 0
mov dword [ebp - 0x148], eax
jne 0x54ff17
cmp byte [ebx + 0x711], 0
je 0x54fddb
mov ecx, dword [ebx + 0xc50]
mov eax, ecx
mov edx, dword [ebx + 0xc54]
and eax, edx
cmp eax, 0xffffffff
je 0x54fddb
push edx
push ecx
push str._I64d
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.0053b624
add esp, 0x14
jmp 0x54fdeb
lea eax, [ebp - 0x44]
push 0x5809b4
push eax
call fcn.0056e530
pop ecx
pop ecx
lea esi, [edi + 0x14c]
mov eax, dword [esi]
add eax, dword [ebp - 0x148]
push str.tsize
push eax
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0054f4e7
add esp, 0x10
mov dword [ebp - 0x14c], eax
test eax, eax
jne 0x54fe3c
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi]
add eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0054f4e7
add esp, 0x10
mov dword [ebp - 0x14c], eax
push dword [edi + 0x140]
lea eax, [ebp - 0x44]
push 0x584ed4
push 0x40
push eax
call fcn.0053b624
add esp, 0x10
cmp dword [ebp - 0x14c], 0
jne 0x54fea9
mov eax, dword [esi]
add eax, dword [ebp - 0x148]
push str.blksize
push eax
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0054f4e7
add esp, 0x10
mov dword [ebp - 0x14c], eax
test eax, eax
jne 0x54fea9
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi]
add eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0054f4e7
add esp, 0x10
mov dword [ebp - 0x14c], eax
push dword [edi + 0x1c]
lea eax, [ebp - 0x44]
push 0x584ed4
push 0x40
push eax
call fcn.0053b624
add esp, 0x10
cmp dword [ebp - 0x14c], 0
jne 0x54ff0d
mov eax, dword [esi]
add eax, dword [ebp - 0x148]
push str.timeout
push eax
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0054f4e7
add esp, 0x10
test eax, eax
jne 0x54ff0d
lea eax, [ebp - 0x44]
push eax
mov eax, dword [esi]
add eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x148]
push eax
push edi
call fcn.0054f4e7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x54ff1d
push str.TFTP_buffer_too_small_for_options
jmp 0x54fd2c
mov esi, dword [ebp - 0x154]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x48]
push dword [eax + 0x10]
push dword [eax + 0x18]
push 0
push dword [ebp - 0x148]
push dword [edi + 0x14c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, dword [ebp - 0x148]
je 0x54ff6f
push 0x100
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0053cedc
push eax
push 0x584ac0
push ebx
call fcn.0052cc10
add esp, 0x18
push dword [ebp - 0x150]
call dword [0x59e13c]
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret