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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
push esi
push edi
lea edi, [ebp - 0x188]
mov ecx, 0x62
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4b965c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str.octet
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0xd62]
test eax, eax
je 0x4740a3
mov dword [ebp - 0x18], str.netascii
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x180], ecx
cmp dword [ebp - 0x180], 7
ja case.0x4740bf.1
mov edx, dword [ebp - 0x180]
jmp dword [edx*4 + 0x474600]
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 [ebp + 8]
mov edx, dword [eax + 0x18]
cmp edx, dword [ecx + 0x20]
jle 0x4740fe
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9e
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
mov eax, dword [ebp - 0x2c]
jmp 0x47457b
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0xd68]
test eax, eax
je 0x47417d
push 2
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.00473a50
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [edx + 0x118], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x184], eax
mov ecx, dword [ebp - 0x184]
mov edx, dword [ebp - 0x184]
mov eax, dword [ecx + 0xc70]
and eax, dword [edx + 0xc74]
cmp eax, 0xffffffff
je 0x47417b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc74]
push edx
mov eax, dword [ecx + 0xc70]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0044b9d0
add esp, 0xc
jmp 0x474191
push 1
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.00473a50
add esp, 8
push 4
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, 1
shl eax, 0
add eax, dword [edx + 0xc9c]
push eax
call fcn.0047bde0
add esp, 0x14
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4741c9
mov eax, dword [ebp - 0x2c]
jmp 0x47457b
mov ecx, dword [ebp - 0x20]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0x18]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x13c]
sub edx, eax
sub edx, 4
cmp esi, edx
jbe 0x474226
push str.TFTP_file_name_too_long
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042e770
add esp, 8
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov eax, 0x47
jmp 0x47457b
push 0
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
push str._s_c_s_c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x13c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, 2
push ecx
call fcn.00436270
add esp, 0x1c
mov edx, dword [ebp - 0x20]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x18]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
lea ecx, [esi + eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
movzx eax, byte [edx + 0x6b0]
test eax, eax
jne 0x47445b
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0xd68]
test edx, edx
je 0x4742e3
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x188]
mov eax, dword [ecx + 0xc70]
and eax, dword [edx + 0xc74]
cmp eax, 0xffffffff
je 0x4742e3
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xc74]
push edx
mov eax, dword [ecx + 0xc70]
push eax
push str._lld
push 0x40
lea ecx, [ebp - 0x70]
push ecx
call fcn.00436270
add esp, 0x14
jmp 0x4742f4
push 0x4b4f94
lea edx, [ebp - 0x70]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
push str.tsize
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00473ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x474343
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00473ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x140]
push ecx
push 0x4b4fa0
push 0x40
lea edx, [ebp - 0x70]
push edx
call fcn.00436270
add esp, 0x10
cmp dword [ebp - 0x2c], 0
jne 0x47438b
push str.blksize
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00473ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4743b5
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00473ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
push 0x4b4fac
push 0x40
lea edx, [ebp - 0x70]
push edx
call fcn.00436270
add esp, 0x10
cmp dword [ebp - 0x2c], 0
jne 0x4743fa
push str.timeout
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00473ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x474424
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00473ef0
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x47445b
push str.TFTP_buffer_too_small_for_options
mov eax, dword [ebp - 0x28]
push eax
call fcn.0042e770
add esp, 8
mov esi, esp
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
mov eax, 0x47
jmp 0x47457b
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + 0x60]
mov esi, esp
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x60]
add edx, 0x10
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp esi, esp
call fcn.004a09b1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
je 0x4744dc
push 0x100
lea eax, [ebp - 0x178]
push eax
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a09b1
push eax
call fcn.00409790
add esp, 0xc
push eax
push 0x4b4fdc
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0042e770
add esp, 0xc
mov esi, esp
mov edx, dword [ebp - 0x20]
push edx
call dword [0x4ab004]
add esp, 4
cmp esi, esp
call fcn.004a09b1
jmp 0x474578
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0xd68]
test ecx, ecx
je 0x47451a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00473f50
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x47452d
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00473fd0
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x474578
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00473f50
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x474578
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00473fd0
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x474578
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
jmp 0x474578
push str.tftp_send_first:_internal_error
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.0042e770
add esp, 8
mov eax, dword [ebp - 0x2c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4745ac]
call fcn.004a095d
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a039d
add esp, 0x188
cmp ebp, esp
call fcn.004a09b1
mov esp, ebp
pop ebp
ret