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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, eax
mov eax, dword [eax + 0x10]
mov esi, dword [eax]
cmp edx, 5
je 0x67363fec
jg 0x67363ef8
cmp edx, 3
je 0x67364068
mov dword [esp + 8], str.tftp_rx:_internal_error
mov dword [esp + 4], 0x6739b394
mov dword [esp], esi
call fcn.67346d80
mov eax, 0x47
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
cmp edx, 6
je 0x67363f50
cmp edx, 7
jne 0x67363ed3
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 0x30]
inc eax
and eax, 0xffff
mov dword [esp + 8], eax
mov dword [esp + 4], str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov dword [esp], esi
call fcn.673471e0
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jle 0x673640bc
mov dword [ebx + 8], 0xffffff9d
mov dword [ebx], 3
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov word [ebx + 0x30], 0
mov dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x150]
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 4
mov eax, dword [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 + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x673640fc
mov dword [ebx], 1
add ebx, 0x2c
mov dword [esp], ebx
call sub.msvcrt.dll_time
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov eax, dword [ebx + 0x150]
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 5
mov eax, dword [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 + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_sendto
sub esp, 0x18
mov dword [ebx], 3
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov eax, dword [ebx + 0x14c]
movzx edx, byte [eax + 2]
shl edx, 8
movzx eax, byte [eax + 3]
or eax, edx
movzx edx, word [ebx + 0x30]
inc edx
movzx ecx, ax
cmp ax, dx
je 0x67364158
mov dword [esp + 8], ecx
mov dword [esp + 4], str.Received_unexpected_DATA_packet_block__d_n
mov dword [esp], esi
call fcn.673471e0
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
cmp eax, dword [ebx + 0x20]
jg 0x67364130
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
mov eax, dword [ebx + 0x138]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_sendto
sub esp, 0x18
test eax, eax
jns 0x673640b0
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.673534dc
mov dword [esp + 8], eax
mov dword [esp + 4], 0x6739b394
mov dword [esp], esi
call fcn.67346d80
mov eax, 0x37
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
movzx eax, word [ebx + 0x30]
inc eax
and eax, 0xffff
mov dword [esp + 8], eax
mov dword [esp + 4], str.tftp_rx:_giving_up_waiting_for_block__d
mov dword [esp], esi
call fcn.67346d80
mov eax, 0x47
jmp 0x67363ef0
mov word [ebx + 0x30], ax
mov dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x150]
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 4
mov eax, dword [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 + 0x14], eax
lea eax, [ebx + 0xb8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov eax, dword [ebx + 0x150]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sub.WS2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x673640fc
mov eax, dword [ebx + 0x144]
add eax, 3
cmp eax, dword [ebx + 0x13c]
setge al
movzx eax, al
lea eax, [eax + eax + 1]
mov dword [ebx], eax
add ebx, 0x2c
mov dword [esp], ebx
call sub.msvcrt.dll_time
xor eax, eax
jmp 0x67363ef0