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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4bf070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x5c], str.octet
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x4e4]
test eax, eax
je 0x4711d3
mov dword [ebp - 0x5c], str.netascii
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x471212
cmp dword [ebp - 0x54], 3
je 0x4715cf
cmp dword [ebp - 0x54], 4
je 0x4715bd
cmp dword [ebp - 0x54], 5
je 0x4715e1
cmp dword [ebp - 0x54], 6
je 0x47158b
cmp dword [ebp - 0x54], 7
je 0x471212
jmp 0x4715ec
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0x20]
jle 0x471248
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9e
mov eax, dword [ebp + 8]
mov dword [eax], 3
mov eax, dword [ebp - 0x50]
jmp 0x471603
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x4f2]
test eax, eax
je 0x4712bb
push 2
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a56
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, 4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 0x148], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x60]
mov eax, dword [eax + 0x4ba0]
and eax, dword [ecx + 0x4ba4]
cmp eax, 0xffffffff
je 0x4712b9
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4ba4]
push dword [eax + 0x4ba0]
push dword [ebp - 0x4c]
call fcn.0045dbcb
add esp, 0xc
jmp 0x4712cd
push 1
mov eax, dword [ebp + 8]
add eax, 0x160
push eax
call fcn.00471a56
pop ecx
pop ecx
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
xor ecx, ecx
inc ecx
shl ecx, 0
add ecx, dword [eax + 0x4b7c]
push ecx
push dword [ebp - 0x4c]
call fcn.00469c41
add esp, 0x18
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x471308
mov eax, dword [ebp - 0x50]
jmp 0x471603
push dword [ebp - 0x58]
call fcn.00421050
pop ecx
mov esi, eax
push dword [ebp - 0x5c]
call fcn.00421050
pop ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x154]
sub ecx, eax
sub ecx, 4
cmp esi, ecx
jbe 0x47134f
push str.TFTP_file_name_too_long_n
push dword [ebp - 0x4c]
call fcn.004465bf
pop ecx
pop ecx
push dword [ebp - 0x58]
call dword [0x4bfa3c]
pop ecx
push 0x47
pop eax
jmp 0x471603
push 0
push dword [ebp - 0x5c]
push 0
push dword [ebp - 0x58]
push str._s_c_s_c
mov eax, dword [ebp + 8]
push dword [eax + 0x154]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
inc eax
inc eax
push eax
call fcn.00466e9a
add esp, 0x1c
push dword [ebp - 0x58]
call fcn.00421050
pop ecx
mov esi, eax
push dword [ebp - 0x5c]
call fcn.00421050
pop ecx
lea eax, [esi + eax + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x21c]
test eax, eax
jne 0x47151d
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x4f2]
test eax, eax
je 0x4713f7
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
mov eax, dword [eax + 0x4ba0]
and eax, dword [ecx + 0x4ba4]
cmp eax, 0xffffffff
je 0x4713f7
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x4ba4]
push dword [eax + 0x4ba0]
push str._I64d
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.00466e9a
add esp, 0x14
jmp 0x471407
push 0x4c65c8
lea eax, [ebp - 0x44]
push eax
call fcn.00421490
pop ecx
pop ecx
push str.tsize
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.004716be
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.004716be
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x158]
push 0x4c65d4
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.00466e9a
add esp, 0x10
push str.blksize
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.004716be
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.004716be
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
push 0x4c65e0
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.00466e9a
add esp, 0x10
push str.timeout
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.004716be
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x160]
add eax, dword [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp + 8]
call fcn.004716be
add esp, 0x10
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x54]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x54]
push dword [eax + 0x18]
push 0
push dword [ebp - 0x48]
mov eax, dword [ebp + 8]
push dword [eax + 0x160]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x48]
je 0x47157f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call fcn.004680bc
pop ecx
pop ecx
push eax
push 0x4c65ec
push dword [ebp - 0x4c]
call fcn.004465bf
add esp, 0xc
push dword [ebp - 0x58]
call dword [0x4bfa3c]
pop ecx
jmp 0x471600
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax + 0x4f2]
test eax, eax
je 0x4715ab
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00471668
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x4715bb
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00471612
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x471600
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00471668
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x471600
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00471612
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jmp 0x471600
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x471600
push str.tftp_send_first:_internal_error
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push dword [eax]
call fcn.004465bf
pop ecx
pop ecx
mov eax, dword [ebp - 0x50]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041553e
mov esp, ebp
pop ebp
ret