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

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, eax
mov eax, dword [eax + 0x10]
mov edi, dword [eax]
cmp edx, 5
je 0x4280c8
jg 0x42806c
cmp edx, 4
je 0x4282a0
mov dword [esp + 8], edx
mov dword [esp + 4], str.tftp_tx:_internal_error__event:__i
mov dword [esp], edi
call fcn.0040c7a8
xor esi, esi
mov eax, esi
add esp, 0x20
pop ebx
pop esi
pop edi
ret
cmp edx, 6
je 0x4281b4
cmp edx, 7
jne 0x42804d
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.0040ccd4
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jle 0x42814c
mov dword [ebx + 8], 0xffffff9d
mov dword [ebx], 3
xor esi, esi
mov eax, esi
add esp, 0x20
pop ebx
pop esi
pop edi
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
add esp, 0x20
pop ebx
pop esi
pop edi
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 0x428320
mov eax, dword [edi + 0x78]
mov edx, dword [edi + 0x7c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], edi
call fcn.0041845c
xor esi, esi
jmp 0x428063
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
mov eax, dword [ebx + 0x144]
jbe 0x428208
cmp dword [ebx + 0x140], eax
jl 0x4280b6
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.0043bae8
mov esi, eax
test eax, eax
jne 0x428063
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 0x428354
mov ecx, dword [ebx + 0x140]
mov ebx, ecx
sar ebx, 0x1f
add ecx, dword [edi + 0x78]
adc ebx, dword [edi + 0x7c]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.0041845c
jmp 0x428063
mov eax, dword [ebx + 0x14c]
movzx edx, byte [eax + 2]
shl edx, 8
movzx eax, byte [eax + 3]
or eax, edx
movzx eax, ax
mov edx, dword [ebx + 0x30]
movzx ecx, dx
cmp ecx, eax
je 0x4283d8
test dx, dx
jne 0x4282d4
cmp eax, 0xffff
je 0x4283d8
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Received_ACK_for_block__d__expecting__d_n
mov dword [esp], edi
call fcn.0040ccd4
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
cmp eax, dword [ebx + 0x20]
jle 0x428388
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.0040c7a8
mov esi, 0x37
jmp 0x428063
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5a858a
mov dword [esp], edi
call fcn.0040c7a8
mov esi, 0x37
jmp 0x428063
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.004379c0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5a858a
mov dword [esp], edi
call fcn.0040c7a8
mov si, 0x37
jmp 0x428063
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 0x428320
xor esi, esi
jmp 0x428063
lea eax, [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_time
inc word [ebx + 0x30]
jmp 0x4281ba