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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x158], str.octet
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x148], 0
mov edx, dword [ebp - 0x14c]
movzx eax, byte [edx + 0xd2c]
test eax, eax
je 0x4b1adf
mov dword [ebp - 0x158], str.netascii
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x15c], ecx
cmp dword [ebp - 0x15c], 7
ja case.0x4b1afb.1
mov edx, dword [ebp - 0x15c]
jmp dword [edx*4 + 0x4b2054]
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 0x4b1b3d
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffff9e
mov ecx, dword [ebp + 8]
mov dword [ecx], 3
mov eax, dword [ebp - 0x148]
jmp 0x4b2044
mov edx, dword [ebp - 0x14c]
movzx eax, byte [edx + 0x719]
test eax, eax
je 0x4b1bc8
push 2
mov ecx, dword [ebp + 8]
add ecx, 0x14c
push ecx
call fcn.004b0de0
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 + 0x130], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 0x160]
mov eax, dword [ecx + 0xc78]
and eax, dword [edx + 0xc7c]
cmp eax, 0xffffffff
je 0x4b1bc6
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc7c]
push edx
mov eax, dword [ecx + 0xc78]
push eax
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.0049e080
add esp, 0xc
jmp 0x4b1bdc
push 1
mov edx, dword [ebp + 8]
add edx, 0x14c
push edx
call fcn.004b0de0
add esp, 8
push 4
push 0
lea eax, [ebp - 0x154]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, 1
shl eax, 0
add eax, dword [edx + 0xcb0]
push eax
call fcn.0046a640
add esp, 0x14
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4b1c20
mov eax, dword [ebp - 0x148]
jmp 0x4b2044
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.00606e50
add esp, 4
mov esi, eax
mov edx, dword [ebp - 0x158]
push edx
call fcn.00606e50
add esp, 4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x13c]
sub edx, eax
sub edx, 4
cmp esi, edx
jbe 0x4b1c80
push str.TFTP_file_name_too_long
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00487870
add esp, 8
mov ecx, dword [ebp - 0x154]
push ecx
call dword [0x6b536c]
add esp, 4
mov eax, 0x47
jmp 0x4b2044
push 0
mov edx, dword [ebp - 0x158]
push edx
push 0
mov eax, dword [ebp - 0x154]
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.0048e060
add esp, 0x1c
mov edx, dword [ebp - 0x154]
push edx
call fcn.00606e50
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x158]
push eax
call fcn.00606e50
add esp, 4
lea ecx, [esi + eax + 4]
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x14c]
movzx eax, byte [edx + 0x6ff]
test eax, eax
jne 0x4b1f15
mov ecx, dword [ebp - 0x14c]
movzx edx, byte [ecx + 0x719]
test edx, edx
je 0x4b1d58
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 0x164]
mov eax, dword [ecx + 0xc78]
and eax, dword [edx + 0xc7c]
cmp eax, 0xffffffff
je 0x4b1d58
mov ecx, dword [ebp - 0x14c]
mov edx, dword [ecx + 0xc7c]
push edx
mov eax, dword [ecx + 0xc78]
push eax
push str._I64d
push 0x40
lea ecx, [ebp - 0x44]
push ecx
call fcn.0048e060
add esp, 0x14
jmp 0x4b1d69
push 0x6342c8
lea edx, [ebp - 0x44]
push edx
call fcn.006074c0
add esp, 8
push str.tsize
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b0ee0
add esp, 0x10
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4b1dcd
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b0ee0
add esp, 0x10
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x140]
push ecx
push 0x62d1cc
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.0048e060
add esp, 0x10
cmp dword [ebp - 0x148], 0
jne 0x4b1e21
push str.blksize
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b0ee0
add esp, 0x10
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4b1e57
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b0ee0
add esp, 0x10
mov dword [ebp - 0x148], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
push 0x62d1cc
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.0048e060
add esp, 0x10
cmp dword [ebp - 0x148], 0
jne 0x4b1ea8
push str.timeout
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0x150]
push ecx
lea edx, [ebp - 0x150]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b0ee0
add esp, 0x10
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4b1ede
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0x150]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b0ee0
add esp, 0x10
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4b1f15
push str.TFTP_buffer_too_small_for_options
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00487870
add esp, 8
mov ecx, dword [ebp - 0x154]
push ecx
call dword [0x6b536c]
add esp, 4
mov eax, 0x47
jmp 0x4b2044
mov edx, dword [ebp - 0x14c]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x48]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x14c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x48]
mov eax, dword [edx + 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x168]
cmp eax, dword [ebp - 0x150]
je 0x4b1f99
push 0x100
lea ecx, [ebp - 0x144]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push 0x62cd70
mov edx, dword [ebp - 0x14c]
push edx
call fcn.00487870
add esp, 0xc
mov eax, dword [ebp - 0x154]
push eax
call dword [0x6b536c]
add esp, 4
jmp 0x4b203e
mov ecx, dword [ebp - 0x14c]
movzx edx, byte [ecx + 0x719]
test edx, edx
je 0x4b1fd7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b0e80
add esp, 8
mov dword [ebp - 0x148], eax
jmp 0x4b1fed
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b0e20
add esp, 8
mov dword [ebp - 0x148], eax
jmp 0x4b203e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b0e80
add esp, 8
mov dword [ebp - 0x148], eax
jmp 0x4b203e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b0e20
add esp, 8
mov dword [ebp - 0x148], eax
jmp 0x4b203e
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x4b203e
push str.tftp_send_first:_internal_error
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00487870
add esp, 8
mov eax, dword [ebp - 0x148]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret