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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
add eax, 0x50
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
sub edx, 4
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 3
ja case.default.0x43d260
mov eax, dword [ebp - 0x1c]
jmp dword [eax*4 + 0x43d704]
cmp dword [ebp + 0xc], 4
jne 0x43d3b4
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.0043d1f0
add esp, 4
and eax, 0xffff
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x30]
cmp dword [ebp - 0xc], eax
je 0x43d390
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x30]
test edx, edx
jne 0x43d2b7
cmp dword [ebp - 0xc], 0xffff
je 0x43d390
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 0x30]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push str.Received_ACK_for_block__d__expecting__d_n
mov eax, dword [ebp - 4]
push eax
call fcn.00422440
add esp, 0x10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x20]
jle 0x43d317
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 0x30]
push edx
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
mov eax, dword [ebp - 4]
push eax
call fcn.004224c0
add esp, 0xc
mov dword [ebp - 0x10], 0x37
jmp 0x43d388
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb8
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x43d388
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00429fa0
add esp, 8
push eax
push 0x46ac58
mov eax, dword [ebp - 4]
push eax
call fcn.004224c0
add esp, 0xc
mov dword [ebp - 0x10], 0x37
mov eax, dword [ebp - 0x10]
jmp 0x43d6fd
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x30]
add ax, 1
mov ecx, dword [ebp + 8]
mov word [ecx + 0x30], ax
jmp 0x43d3bd
mov edx, dword [ebp + 8]
mov word [edx + 0x30], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
push 3
mov ecx, dword [ebp + 8]
add ecx, 0x150
push ecx
call fcn.0043cc50
add esp, 8
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x30]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x150
push ecx
call fcn.0043d1b0
add esp, 8
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x30]
cmp eax, 1
jle 0x43d427
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x140]
cmp eax, dword [edx + 0x144]
jge 0x43d427
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
xor eax, eax
jmp 0x43d6fd
mov edx, dword [ebp + 8]
mov dword [edx + 0x140], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
add ecx, 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov edx, dword [eax]
mov dword [edx + 0x110], ecx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x144]
sub eax, dword [edx + 0x140]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00454190
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43d485
mov eax, dword [ebp - 0x10]
jmp 0x43d6fd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x140]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x140], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x110]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx]
mov dword [ecx + 0x110], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x140]
cmp ecx, dword [eax + 0x144]
jge 0x43d4d7
cmp dword [ebp - 0x18], 0
jne 0x43d44e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xb8
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x43d54c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.00429fa0
add esp, 8
push eax
push 0x46ac58
mov ecx, dword [ebp - 4]
push ecx
call fcn.004224c0
add esp, 0xc
mov eax, 0x37
jmp 0x43d6fd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x140]
cdq
mov esi, dword [ecx + 0x28]
add esi, eax
mov eax, dword [ecx + 0x2c]
adc eax, edx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [edx + 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0042ffe0
add esp, 0xc
jmp 0x43d6fa
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov ax, word [edx + 0x30]
add eax, 1
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.00422440
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, dword [eax + 0x20]
jle 0x43d5e7
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0xffffff9d
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x43d672
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb8
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x140]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x150]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x43d65b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00429fa0
add esp, 8
push eax
push 0x46ac58
mov eax, dword [ebp - 4]
push eax
call fcn.004224c0
add esp, 0xc
mov eax, 0x37
jmp 0x43d6fd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x2c]
push edx
mov eax, dword [ecx + 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042ffe0
add esp, 0xc
jmp 0x43d6fa
mov edx, dword [ebp + 8]
mov dword [edx], 3
push 5
mov eax, dword [ebp + 8]
add eax, 0x150
push eax
call fcn.0043cc50
add esp, 8
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0x30]
push edx
mov eax, dword [ebp + 8]
add eax, 0x150
push eax
call fcn.0043d1b0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
push edx
mov eax, dword [ebp + 8]
add eax, 0xb8
push eax
push 0
push 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x150]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x43d6fa
mov eax, dword [ebp + 0xc]
push eax
push str.tftp_tx:_internal_error__event:__i
mov ecx, dword [ebp - 4]
push ecx
call fcn.004224c0
add esp, 0xc
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret