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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x46f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, edx
xor ebx, ebx
push edi
mov edi, dword [esi + 0x10]
sub eax, 4
je 0x438106
sub eax, 1
je 0x4380aa
sub eax, 1
je 0x438106
sub eax, 1
je 0x43803b
push edx
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.0041d6ad
add esp, 0xc
jmp 0x438334
inc dword [esi + 0x18]
movzx eax, word [esi + 0x144]
push dword [esi + 0x18]
inc eax
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d
push edi
call fcn.0041d632
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x438075
mov dword [esi + 8], 0xffffff9d
mov dword [esi], 3
jmp 0x438334
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push 0
add eax, 4
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x43831c
jmp 0x4382e0
push 3
pop edi
mov dword [esi], edi
mov eax, dword [esi + 0x14c]
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
lea eax, [esi + 0xb0]
push dword [esi + 0x130]
push eax
push 0
push 4
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], edi
jmp 0x438334
xor eax, eax
inc eax
cmp edx, 4
jne 0x4381e1
mov eax, dword [esi + 0x148]
movzx edx, word [esi + 0x144]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, edx
cmp ecx, eax
je 0x4381cd
test dx, dx
jne 0x438147
cmp ecx, 0xffff
je 0x4381cd
push eax
push ecx
push str.Received_ACK_for_block__d__expecting__d
push edi
call fcn.0041d632
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x438171
movzx eax, word [esi + 0x144]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
jmp 0x4381bc
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push 0
add eax, 4
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x438334
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.0041a0b8
pop ecx
push eax
push 0x45fe94
push edi
call fcn.0041d6ad
add esp, 0xc
push 0x37
pop ebx
jmp 0x438334
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
inc word [esi + 0x144]
pop ecx
jmp 0x4381e8
mov word [esi + 0x144], ax
and dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14c]
mov byte [eax], bl
mov eax, dword [esi + 0x14c]
mov byte [eax + 1], 3
movzx edx, word [esi + 0x144]
mov eax, dword [esi + 0x14c]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x14c]
mov byte [eax + 3], dl
xor eax, eax
inc eax
cmp word [esi + 0x144], ax
jbe 0x438242
mov eax, dword [esi + 0x138]
cmp eax, dword [esi + 0x13c]
jge 0x438242
mov dword [esi], 3
xor eax, eax
jmp 0x438336
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14c]
and dword [esi + 0x138], ebx
add ecx, 4
mov dword [eax + 0x130], ecx
lea eax, [ebp - 0x10c]
mov edx, dword [esi + 0x13c]
sub edx, dword [esi + 0x138]
push eax
jmp 0x4382a1
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x10c]
add dword [esi + 0x138], ecx
add dword [eax + 0x130], ecx
mov eax, dword [esi + 0x138]
mov edx, dword [esi + 0x13c]
cmp eax, edx
jge 0x4382b4
test ecx, ecx
je 0x4382b4
lea ecx, [ebp - 0x10c]
sub edx, eax
push ecx
mov ecx, edi
call fcn.0042aac7
mov ebx, eax
pop ecx
test ebx, ebx
je 0x43826f
jmp 0x438334
push dword [esi + 0x130]
lea eax, [esi + 0xb0]
push eax
mov eax, dword [esi + 0x138]
push 0
add eax, 4
push eax
push dword [esi + 0x14c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x438309
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.0041a0b8
pop ecx
push eax
push 0x45fe94
push edi
call fcn.0041d6ad
add esp, 0xc
push 0x37
pop eax
jmp 0x438336
mov eax, dword [esi + 0x138]
cdq
add dword [edi + 0x98], eax
adc dword [edi + 0x9c], edx
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x9c]
mov dword [edi + 0x774], ecx
mov dword [edi + 0x770], eax
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ca6
leave
ret