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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
mov eax, dword [eax + 0x10]
mov edi, dword [eax]
cmp edx, 5
je 0x673644d8
jg 0x6736447c
cmp edx, 4
je 0x673646b0
mov dword [esp + 8], edx
mov dword [esp + 4], str.tftp_tx:_internal_error__event:__i
mov dword [esp], edi
call fcn.67346d80
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp edx, 6
je 0x673645c4
cmp edx, 7
jne 0x6736445c
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], edi
call fcn.673471e0
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jle 0x6736455c
mov dword [ebx + 8], 0xffffff9d
mov dword [ebx], 3
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [ebx], 3
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 esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
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 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 sub.WS2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x67364748
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.673527c8
xor esi, esi
jmp 0x67364472
mov word [ebx + 0x30], 1
mov dword [ebx + 0x18], 0
mov eax, dword [ebx + 0x150]
mov byte [eax], 0
mov eax, dword [ebx + 0x150]
mov byte [eax + 1], 3
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
cmp word [ebx + 0x30], 1
jbe 0x673647d4
mov eax, dword [ebx + 0x144]
cmp dword [ebx + 0x140], eax
jl 0x673644c6
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.6734ced4
mov esi, eax
test eax, eax
jne 0x67364472
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 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 sub.WS2_32.dll_sendto
sub esp, 0x18
test eax, eax
js 0x673647a0
mov eax, dword [ebx + 0x140]
cdq
add eax, dword [edi + 0x40]
adc edx, dword [edi + 0x44]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.673527c8
jmp 0x67364472
mov eax, dword [ebx + 0x14c]
movzx edx, byte [eax + 2]
shl edx, 8
movzx eax, byte [eax + 3]
or eax, edx
movzx eax, ax
movzx edx, word [ebx + 0x30]
cmp edx, eax
je 0x673647e0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_ACK_for_block__d__expecting__d_n
mov dword [esp], edi
call fcn.673471e0
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
cmp eax, dword [ebx + 0x20]
jg 0x6736477c
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 eax, dword [ebx + 0x140]
add eax, 4
mov dword [esp + 8], eax
lea eax, [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 0x67364748
xor esi, esi
jmp 0x67364472
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], edi
call fcn.67346d80
mov esi, 0x37
jmp 0x67364472
movzx eax, word [ebx + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov dword [esp], edi
call fcn.67346d80
mov esi, 0x37
jmp 0x67364472
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], edi
call fcn.67346d80
mov si, 0x37
jmp 0x67364472
mov eax, dword [ebx + 0x144]
jmp 0x6736461c
lea eax, [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_time
inc word [ebx + 0x30]
jmp 0x673645ca