Function at 0x433310
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 0x4334a6
jle 0x433430
cmp edx, 6
je 0x433390
cmp edx, 7
jne 0x433481
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 0x433522
mov dword [ebx + 8], 0xffffff9d
xor eax, eax
mov dword [ebx], 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x150]
xor ecx, ecx
mov word [ebx + 0x30], cx
mov dword [ebx + 0x18], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 4
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
test eax, eax
js 0x433570
mov dword [ebx], 1
add ebx, 0x2c
mov dword [esp], ebx
call sub.msvcrt.dll_time
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 3
jne 0x433481
mov edx, dword [ebx + 0x14c]
movzx eax, byte [edx + 2]
movzx edi, byte [edx + 3]
movzx edx, word [ebx + 0x30]
shl eax, 8
or edi, eax
lea ecx, [edx + 1]
movzx eax, di
movzx ecx, cx
cmp ecx, eax
je 0x4335a6
cmp eax, edx
je 0x433653
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
mov dword [esp], esi
call fcn.00416500
xor eax, eax
jmp 0x43349e
mov dword [esp + 8], str.tftp_rx:_internal_error
mov dword [esp + 4], 0x46a7aa
mov dword [esp], esi
call fcn.00416580
mov eax, 0x47
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x150]
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]
xor eax, eax
mov dword [ebx], 3
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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]
mov edx, eax
sub esp, 0x18
xor eax, eax
test edx, edx
jns 0x43349e
nop
lea esi, [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00413750
mov dword [esp], esi
mov dword [esp + 4], 0x46a7aa
mov dword [esp + 8], eax
call fcn.00416580
lea esp, [ebp - 0xc]
mov eax, 0x37
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x150]
mov word [ebx + 0x30], di
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 4
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
test eax, eax
js 0x433570
mov eax, dword [ebx + 0x144]
add eax, 3
cmp eax, dword [ebx + 0x13c]
setge al
add ebx, 0x2c
movzx eax, al
lea eax, [eax + eax + 1]
mov dword [ebx - 0x2c], eax
mov dword [esp], ebx
call sub.msvcrt.dll_time
xor eax, eax
jmp 0x43349e
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_last_DATA_packet_block__d_again._n
mov dword [esp], esi
call fcn.00416500
jmp 0x4335ad