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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x10]
mov esi, dword [eax]
lea eax, [ecx - 4]
xor ebx, ebx
cmp eax, 3
ja case.default.0x43004b
jmp dword [eax*4 + 0x430384]
cmp ecx, 4
jne 0x43012c
mov ecx, dword [edi + 0x15c]
movzx dx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx eax, dx
movzx edx, word [edi + 0x40]
or eax, ecx
movzx ecx, dx
cmp eax, ecx
je 0x43011a
cmp dx, bx
jne 0x430092
cmp eax, 0xffff
je 0x43011a
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
mov ecx, esi
call fcn.004140b0
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp eax, dword [edi + 0x20]
jle 0x4300ba
movzx edx, word [edi + 0x40]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
jmp 0x430102
mov eax, dword [edi + 0x148]
mov edx, dword [edi + 0x150]
push eax
mov eax, dword [edi + 0x160]
lea ecx, [edi + 0xc8]
push ecx
mov ecx, dword [edi + 0x14]
push ebx
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x430111
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x10]
push edx
mov edi, eax
call fcn.00412840
add esp, 4
push eax
push 0x461afc
mov eax, esi
call fcn.00414140
mov ebx, 0x37
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
lea eax, [edi + 0x38]
push eax
call fcn.004459b8
add esp, 4
inc word [edi + 0x40]
jmp 0x430135
mov ecx, 1
mov word [edi + 0x40], cx
mov dword [edi + 0x18], ebx
mov edx, dword [edi + 0x160]
mov byte [edx], bl
mov eax, dword [edi + 0x160]
mov byte [eax + 1], 3
movzx eax, word [edi + 0x40]
mov edx, dword [edi + 0x160]
mov ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [edi + 0x160]
mov byte [ecx + 3], al
cmp word [edi + 0x40], 1
jbe 0x43017e
mov edx, dword [edi + 0x150]
cmp edx, dword [edi + 0x154]
jl 0x43035b
mov eax, dword [edi + 0x160]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x150], ebx
mov edx, dword [ecx]
add eax, 4
mov dword [edx + 0x114], eax
jmp 0x4301a0
mov ecx, dword [edi + 0x154]
mov edx, dword [edi + 0x10]
sub ecx, dword [edi + 0x150]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.004241b0
add esp, 8
cmp eax, ebx
jne 0x43037c
mov ecx, dword [esp + 0x10]
add dword [edi + 0x150], ecx
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
add dword [eax + 0x114], ecx
mov edx, dword [edi + 0x150]
cmp edx, dword [edi + 0x154]
jge 0x4301ec
cmp ecx, ebx
jne 0x4301a0
mov eax, dword [edi + 0x148]
mov edx, dword [edi + 0x150]
push eax
mov eax, dword [edi + 0x160]
lea ecx, [edi + 0xc8]
push ecx
mov ecx, dword [edi + 0x14]
push ebx
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x43024a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x10]
push edx
mov edi, eax
call fcn.00412840
add esp, 4
push eax
push 0x461afc
mov eax, esi
call fcn.00414140
add esp, 8
mov eax, 0x37
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [edi + 0x150]
cdq
add dword [esi + 0x78], eax
mov ecx, dword [esi + 0x78]
adc dword [esi + 0x7c], edx
mov eax, dword [esi + 0x7c]
push eax
push ecx
call fcn.00426dd0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
movzx edx, word [edi + 0x40]
inc dword [edi + 0x18]
mov eax, dword [edi + 0x18]
inc edx
push eax
and edx, 0xffff
push edx
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, esi
call fcn.004140b0
mov eax, dword [edi + 0x18]
add esp, 0xc
cmp eax, dword [edi + 0x20]
jle 0x4302b0
mov dword [edi + 8], 0xffffff9d
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [edi + 0x148]
mov eax, dword [edi + 0x150]
push ecx
mov ecx, dword [edi + 0x160]
lea edx, [edi + 0xc8]
push edx
mov edx, dword [edi + 0x14]
push ebx
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jge 0x4302ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x10]
push ecx
jmp 0x430224
mov edx, dword [esi + 0x7c]
mov eax, dword [esi + 0x78]
push edx
push eax
call fcn.00426dd0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
mov dword [edi], 3
mov ecx, dword [edi + 0x160]
mov byte [ecx], bl
mov edx, dword [edi + 0x160]
mov byte [edx + 1], 5
movzx eax, word [edi + 0x40]
mov edx, dword [edi + 0x160]
mov ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov ecx, dword [edi + 0x160]
mov byte [ecx + 3], al
mov edx, dword [edi + 0x148]
mov ecx, dword [edi + 0x160]
push edx
mov edx, dword [edi + 0x14]
lea eax, [edi + 0xc8]
push eax
push ebx
push 4
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push ecx
push str.tftp_tx:_internal_error__event:__i
mov eax, esi
call fcn.00414140
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret