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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi + 0x10]
push 4
mov edi, dword [eax]
mov eax, dword [esp + 0x1c]
pop ebp
xor ebx, ebx
sub eax, ebp
je 0x1004603c
dec eax
je 0x10045fe0
dec eax
je 0x1004603c
dec eax
je 0x10045f7a
push dword [esp + 0x18]
push str.tftp_tx:_internal_error__event:__i
push edi
call fcn.10034609
jmp 0x10046239
movzx eax, word [esi + 0x40]
inc dword [esi + 0x18]
push dword [esi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push edi
call fcn.100346c5
mov eax, dword [esi + 0x18]
add esp, 0x10
cmp eax, dword [esi + 0x20]
jle 0x10045fad
mov dword [esi + 8], 0xffffff9d
jmp 0x10046031
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, ebp
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10046227
jmp 0x100461f1
mov dword [esi], 3
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 5
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
push ebx
push ebp
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esi], 3
jmp 0x1004623c
xor eax, eax
inc eax
cmp dword [esp + 0x18], ebp
jne 0x10046111
mov ecx, dword [esi + 0x15c]
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [esi + 0x40]
mov ecx, eax
cmp edx, ecx
je 0x10046101
test ax, ax
jne 0x1004607f
cmp edx, 0xffff
je 0x10046101
push ecx
push edx
push str.Received_ACK_for_block__d__expecting__d_n
push edi
call fcn.100346c5
add esp, 0x10
inc dword [esi + 0x18]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x20]
jle 0x100460af
movzx eax, word [esi + 0x40]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push edi
call fcn.10034609
add esp, 0xc
jmp 0x100460f7
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, ebp
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x100460fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.100409d4
push eax
push 0x10092524
push edi
call fcn.10034609
add esp, 0x14
push 0x37
pop ebx
mov eax, ebx
jmp 0x1004623e
lea eax, [esi + 0x38]
push eax
call fcn.1005be54
inc word [esi + 0x40]
pop ecx
jmp 0x10046115
mov word [esi + 0x40], ax
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x160]
mov byte [eax], bl
mov eax, dword [esi + 0x160]
mov byte [eax + 1], 3
movzx edx, word [esi + 0x40]
mov eax, dword [esi + 0x160]
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov eax, dword [esi + 0x160]
mov byte [eax + 3], dl
xor eax, eax
inc eax
cmp word [esi + 0x40], ax
jbe 0x10046160
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jl 0x10046031
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x160]
mov dword [esi + 0x150], ebx
mov eax, dword [eax]
add ecx, ebp
mov dword [eax + 0x150], ecx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x154]
sub eax, dword [esi + 0x150]
push eax
push dword [esi + 0x10]
call fcn.10036d8c
add esp, 0xc
test eax, eax
jne 0x1004623e
mov ecx, dword [esp + 0x18]
add dword [esi + 0x150], ecx
mov eax, dword [esi + 0x10]
mov eax, dword [eax]
add dword [eax + 0x150], ecx
mov eax, dword [esi + 0x150]
cmp eax, dword [esi + 0x154]
jge 0x100461c7
cmp dword [esp + 0x18], ebx
jne 0x10046179
push dword [esi + 0x148]
lea eax, [esi + 0xc8]
push eax
mov eax, dword [esi + 0x150]
push ebx
add eax, ebp
push eax
push dword [esi + 0x160]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10046214
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [esi + 0x10]
call fcn.100409d4
push eax
push 0x10092524
push edi
call fcn.10034609
add esp, 0x14
push 0x37
pop eax
jmp 0x1004623e
mov eax, dword [esi + 0x150]
cdq
add dword [edi + 0x98], eax
adc dword [edi + 0x9c], edx
push dword [edi + 0x9c]
push dword [edi + 0x98]
push edi
call fcn.1003d11d
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret