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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x2c
mov eax, dword [eax + 0x10]
cmp edx, 5
mov esi, dword [eax]
je 0x433950
jle 0x433920
cmp edx, 6
je 0x4339d4
cmp edx, 7
jne 0x433929
mov eax, dword [ebx + 0x18]
add eax, 1
mov dword [ebx + 0x18], eax
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 0x30]
mov dword [esp + 4], str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov dword [esp], esi
add eax, 1
movzx eax, ax
mov dword [esp + 8], eax
call fcn.00416500
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jle 0x433b42
mov dword [ebx + 8], 0xffffff9d
xor edi, edi
mov dword [ebx], 3
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 4
je 0x433ac1
mov dword [esp + 8], edx
xor edi, edi
mov dword [esp + 4], str.tftp_tx:_internal_error__event:__i
mov dword [esp], esi
call fcn.00416580
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x150]
mov dword [ebx], 3
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 5
movzx eax, word [ebx + 0x30]
mov edx, dword [ebx + 0x150]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [ebx + 0x150]
mov byte [edx + 3], al
mov eax, dword [ebx + 0x138]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
mov dword [ebx], 3
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 1
mov word [ebx + 0x30], di
mov eax, dword [ebx + 0x150]
mov dword [ebx + 0x18], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 3
movzx eax, word [ebx + 0x30]
mov edx, dword [ebx + 0x150]
mov ecx, eax
shr cx, 8
mov byte [edx + 2], cl
mov edx, dword [ebx + 0x150]
mov byte [edx + 3], al
mov eax, dword [ebx + 0x144]
cmp word [ebx + 0x30], 1
jbe 0x433a28
cmp dword [ebx + 0x140], eax
jl 0x4339c2
lea edx, [ebx + 0x140]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0043f140
test eax, eax
mov edi, eax
jne 0x43393f
mov eax, dword [ebx + 0x138]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x140]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
test eax, eax
js 0x433c24
mov ecx, dword [ebx + 0x140]
mov ebx, ecx
sar ebx, 0x1f
add ecx, dword [esi + 0x78]
adc ebx, dword [esi + 0x7c]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], esi
call fcn.00424070
jmp 0x43393f
mov eax, dword [ebx + 0x14c]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl edx, 8
or eax, edx
movzx edx, word [ebx + 0x30]
movzx eax, ax
movzx ecx, dx
cmp ecx, eax
je 0x433c56
test dx, dx
jne 0x433af6
cmp eax, 0xffff
je 0x433c56
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Received_ACK_for_block__d__expecting__d_n
mov dword [esp], esi
call fcn.00416500
mov eax, dword [ebx + 0x18]
add eax, 1
cmp eax, dword [ebx + 0x20]
mov dword [ebx + 0x18], eax
jle 0x433bd8
movzx eax, word [ebx + 0x30]
mov edi, 0x37
mov dword [esp + 4], str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416580
jmp 0x43393f
mov eax, dword [ebx + 0x138]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x140]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
test eax, eax
js 0x433ba5
mov eax, dword [esi + 0x78]
xor edi, edi
mov edx, dword [esi + 0x7c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00424070
jmp 0x43393f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, 0x37
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00413750
mov dword [esp + 4], 0x46a7aa
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416580
jmp 0x43393f
mov eax, dword [ebx + 0x138]
xor edi, edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x140]
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
test eax, eax
jns 0x43393f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov di, 0x37
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00413750
mov dword [esp + 4], 0x46a7aa
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00416580
jmp 0x43393f
lea eax, [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_time
add word [ebx + 0x30], 1
jmp 0x4339dd