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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x59e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [edi + 0x10]
sub eax, 4
je 0x55030e
sub eax, 1
je 0x5502c3
sub eax, 1
je 0x55030e
sub eax, 1
je 0x55025c
push dword [ebp + 0xc]
push str.tftp_tx:_internal_error__event:__i
push esi
call fcn.0052cc10
jmp 0x550519
mov eax, dword [edi + 0x18]
inc eax
push eax
mov dword [edi + 0x18], eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
push esi
call fcn.0052ccc0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x55028f
mov dword [edi + 8], 0xffffff9d
jmp 0x550303
push dword [edi + 0x130]
lea eax, [edi + 0xb0]
push eax
mov eax, dword [edi + 0x138]
push ebx
add eax, 4
push eax
push dword [edi + 0x14c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x550507
jmp 0x5504c8
lea esi, [edi + 0x14c]
mov dword [edi], 3
push 5
push esi
call fcn.0054f458
movzx eax, word [edi + 0x144]
push eax
push esi
call fcn.0054f43c
add esp, 0x10
lea eax, [edi + 0xb0]
push dword [edi + 0x130]
push eax
push ebx
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
jmp 0x55051c
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 4
jne 0x5503ee
lea eax, [edi + 0x148]
push eax
call fcn.0054f40b
pop ecx
movzx ecx, word [edi + 0x144]
movzx eax, ax
mov edx, ecx
cmp eax, edx
je 0x5503db
test cx, cx
jne 0x55034c
cmp eax, 0xffff
je 0x5503db
push edx
push eax
push str.Received_ACK_for_block__d__expecting__d
push esi
call fcn.0052ccc0
add esp, 0x10
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x20]
jle 0x55037f
movzx eax, word [edi + 0x144]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push esi
call fcn.0052cc10
add esp, 0xc
jmp 0x5503d1
push dword [edi + 0x130]
lea eax, [edi + 0xb0]
push eax
mov eax, dword [edi + 0x138]
push ebx
add eax, 4
push eax
push dword [edi + 0x14c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x5503d4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0053cedc
push eax
push 0x584ac0
push esi
call fcn.0052cc10
add esp, 0x18
push 0x37
pop ebx
mov eax, ebx
jmp 0x55051e
lea eax, [edi + 0x28]
push eax
call fcn.00563ba1
inc word [edi + 0x144]
pop ecx
jmp 0x5503f5
mov word [edi + 0x144], ax
lea eax, [edi + 0x14c]
mov dword [edi + 0x18], ebx
push 3
push eax
call fcn.0054f458
movzx eax, word [edi + 0x144]
push eax
lea eax, [edi + 0x14c]
push eax
call fcn.0054f43c
xor eax, eax
add esp, 0x10
inc eax
cmp word [edi + 0x144], ax
jbe 0x55043b
mov eax, dword [edi + 0x138]
cmp eax, dword [edi + 0x13c]
jl 0x550303
mov ecx, dword [edi + 0x14c]
mov eax, dword [edi + 0x10]
add ecx, 4
mov dword [edi + 0x138], ebx
mov dword [eax + 0x130], ecx
lea eax, [ebp - 0x108]
push eax
mov eax, dword [edi + 0x13c]
sub eax, dword [edi + 0x138]
push eax
push esi
call fcn.00536643
add esp, 0xc
test eax, eax
jne 0x55051e
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x108]
add dword [edi + 0x138], ecx
add dword [eax + 0x130], ecx
mov ecx, dword [edi + 0x138]
cmp ecx, dword [edi + 0x13c]
jge 0x5504a3
cmp dword [ebp - 0x108], ebx
jne 0x550453
push dword [edi + 0x130]
lea eax, [edi + 0xb0]
push eax
push ebx
lea eax, [ecx + 4]
push eax
push dword [edi + 0x14c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x5504f4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0053cedc
push eax
push 0x584ac0
push esi
call fcn.0052cc10
add esp, 0x18
push 0x37
pop eax
jmp 0x55051e
mov eax, dword [edi + 0x138]
cdq
add dword [esi + 0x98], eax
adc dword [esi + 0x9c], edx
push dword [esi + 0x9c]
push dword [esi + 0x98]
push esi
call fcn.0053840f
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051bf16
leave
ret