Function at 0x429574
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 0x429610
jg 0x4295b4
cmp edx, 4
je 0x4297e8
mov dword [esp + 8], edx
mov dword [esp + 4], str.tftp_tx:_internal_error__event:__i
mov dword [esp], edi
call fcn.0040dcf0
xor esi, esi
mov eax, esi
add esp, 0x20
pop ebx
pop esi
pop edi
ret
cmp edx, 6
je 0x4296fc
cmp edx, 7
jne 0x429595
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.0040e21c
mov eax, dword [ebx + 0x20]
cmp dword [ebx + 0x18], eax
jle 0x429694
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 0x429868
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.004199a4
xor esi, esi
jmp 0x4295ab
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 0x429750
cmp dword [ebx + 0x140], eax
jl 0x4295fe
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.0043bf08
mov esi, eax
test eax, eax
jne 0x4295ab
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 0x42989c
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.004199a4
jmp 0x4295ab
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 0x429920
test dx, dx
jne 0x42981c
cmp eax, 0xffff
je 0x429920
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.0040e21c
mov eax, dword [ebx + 0x18]
inc eax
mov dword [ebx + 0x18], eax
cmp eax, dword [ebx + 0x20]
jle 0x4298d0
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.0040dcf0
mov esi, 0x37
jmp 0x4295ab
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5aa18a
mov dword [esp], edi
call fcn.0040dcf0
mov esi, 0x37
jmp 0x4295ab
call sub.WS2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.0040227c
mov dword [esp + 8], eax
mov dword [esp + 4], 0x5aa18a
mov dword [esp], edi
call fcn.0040dcf0
mov si, 0x37
jmp 0x4295ab
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 0x429868
xor esi, esi
jmp 0x4295ab
lea eax, [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_time
inc word [ebx + 0x30]
jmp 0x429702